s_mj
s_mj

Reputation: 580

get pandas dataframe column datetime format

How can we get the format of datetime column in Pandas dataframe?

# This is how we set!
df["Date"] = df["Date"].strftime("%m-%d-%Y")

Now, how do I get it? as

df['Date'].?????

>>> "%m-%d-%Y"

Upvotes: 1

Views: 48

Answers (0)

Related Questions