convert timestamp to period pandas

Solutions on MaxInterview for convert timestamp to period pandas by the best coders in the world

showing results for - "convert timestamp to period pandas"
Jessica
01 Sep 2018
1period = pd.Period('2017-1')
2period.to_timestamp()
Marley
21 Jun 2020
1timestamp = pd.Timestamp('2017-1-24')
2timestamp.to_period('M')