Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert timestamp to period pandas

timestamp = pd.Timestamp('2017-1-24')
timestamp.to_period('M')
 
PREVIOUS NEXT
Tagged: #convert #timestamp #period #pandas
ADD COMMENT
Topic
Name
6+8 =