Skip to content

Glossary: pandas Basics

to_datetime

Also written: pd.to_datetime, datetime64[us]

Converts date text to real dates. `format=` says which part is the month, day and year, and `errors="coerce"` turns bad values into NaT.

Where the book teaches it

Related terms

parse_datesstrftimeNaN, NaT