From the course: Data Ingestion with Python
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Causes of errors - Python Tutorial
From the course: Data Ingestion with Python
Causes of errors
- [Narrator] Knowing the Cause of Errors will help you manage them better. Let's have a look at a few common causes. The first cause is hardware. Drivers fails, memory fail, there are power surges, and even cosmic rays. Studies by IBM in the 90s suggest that computers typically experience about one cosmic ray induced error per 256 megabytes of RAM per month, which means that if you have a 32 gigabyte RAM, you have a cosmic ray induced error every three hours. There's not much you can do about hardware errors. Know about them and discuss with your IT how to minimize them. Another cause of errors is user input. People make mistakes, typos, calculation errors, copy and paste errors, and much more. Try to validate all user input as much as you can. Have a plan to automatically fix user errors. For example, spelling. The last cause of this class is bugs. After writing code for more than 20 years, I still haven't figured out how to write bug-free code. Cover yourself, you have to have tests…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.