# https://www.dataquest.io/blog/tutorial-time-series-analysis-with-pandas/ df['TIME'] = pd.to_datetime(df['Time'],unit='s') df_time = df.set_index('TIME') # Add columns with year, month, and Weekday Name df_time['Year'] = df_time.index.year df_time['Month'] = df_time.index.month df_time['Weekday Name'] = df_time.index.weekday_name # Display a random sampling of 5 rows df_time.sample(5, random_state=0) # Visualizing time series data sns.set(rc={'figure.figsize':(11, 4)})