Python · Lesson 9.1 · Pro
try and except
Handle errors instead of crashing, so one bad row doesn't stop the whole job.
In this lesson
- Catch an error
- Skip bad rows
- Catch the right error
- Look at the error
Go Pro to read this lesson
Pro unlocks every lesson and practice problem in SQL, Python, pandas and NumPy, with answers and step-by-step explanations.