convert timestamp to period pandas
period = pd.Period('2017-1')
period.to_timestamp()
0
0
timestamp = pd.Timestamp('2017-1-24')
timestamp.to_period('M')
Thank you!
0
0
Are there any code examples left?
New code examples in category Python