Answers for "how to separate year from datetime column in python"

0

how to separate year from datetime column in python

df['year'] = pd.DatetimeIndex(df['ArrivalDate']).year
df['month'] = pd.DatetimeIndex(df['ArrivalDate']).month
Posted by: Guest on June-04-2021

Code answers related to "how to separate year from datetime column in python"

Python Answers by Framework

Browse Popular Code Answers by Language