Answers for "python take the month of date in new column"

0

python take the month of date in new column

#pandas datetimeindex docs: https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DatetimeIndex.html
df['month'] = pd.DatetimeIndex(df['birth_date']).month
df.head()
Posted by: Guest on November-29-2020

Code answers related to "python take the month of date in new column"

Python Answers by Framework

Browse Popular Code Answers by Language