DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+1 =
Submit