Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to omit days pandas datetime

monthly = monthly.reset_index()
monthly['date'] = monthly['date'].apply(lambda x: x.strftime('%Y-%m'))
monthly.set_index('date', inplace=True)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #omit #days #pandas #datetime
ADD COMMENT
Topic
Name
9+8 =