Final Quiz

This quiz will make sure you've covered the necessary knowledge of the date manipulation functionality in Pandas.

Final date manipulation quiz

1

Assuming date is a column of type datetime , how can you access the year information?

A)

df['date'].year

B)

df['date'].date.year

C)

df['date'].dt.year

Question 1 of 30 attempted

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.