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

Causes of errors - Python Tutorial

From the course: Data Ingestion with Python

Start my 1-month free trial

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…

Contents