pandas · Lesson 3.4 · Pro
Fixing types
Turn text into numbers and dates, cleanly, even when some values are broken.
In this lesson
- astype
- Clean text, then convert
- errors="coerce"
- Text to dates
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.