Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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()
Source by www.interviewqs.com #
 
PREVIOUS NEXT
Tagged: #python #month #date #column
ADD COMMENT
Topic
Name
7+7 =