← Quiz: Data Cleaning: all 10 questions
Quiz: Data Cleaning · Question 5 of 10
What does pd.todatetime(col, errors="coerce") do with "not known"?
What does pd.to_datetime(col, errors="coerce") do with "not known"?
- A.Raises an exception
- B.Turns it into NaT (missing date)
- C.Replaces it with today's date
- D.Keeps the text
Answer & explanation
Correct answer: Turns it into NaT (missing date)
NaT is the missing value for dates.
Can you get the rest right without peeking?
Take the timed Quiz: Data Cleaning quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →