Quiz Yourself: Date Manipulation

Let's take a short quiz on what we've learned about data manipulation with Pandas.

Date Manipulation with Pandas

1

Suppose we have a DataFrame called df that contains a date column. How can we extract the month value from this column?

A)

df["date"].month

B)

df["date"].dt.month()

C)

df["date"].dt.month

Question 1 of 20 attempted

Get hands-on with 1200+ tech skills courses.