Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas month and year

df['month_year'] = df['date_column'].dt.to_period('M')
Source by stackoverflow-com.translate.goog #
 
PREVIOUS NEXT
Tagged: #pandas #month #year
ADD COMMENT
Topic
Name
5+1 =