rng = pd.date_range('1/1/2012', periods=5, freq='M') # M here means month ts = pd.Series(np.random.randn(len(rng)), index=rng) ps = ts.to_period() ps.to_timestamp()