1# Unix-time to
2df.Timestamp = pd.to_datetime(df.Timestamp, unit='s')
3
4# Resampling to daily frequency
5df.index = df.Timestamp
6df = df.resample('D').mean()
7
8# Resampling to monthly frequency
9df_month = df.resample('M').mean()
10
11# Resampling to annual frequency
12df_year = df.resample('A-DEC').mean()
13
14# Resampling to quarterly frequency
15df_Q = df.resample('Q-DEC').mean()