In [1]:
from ahh import vis, pre
In [2]:
heart_df_pivot_fp = pre.join_cwd('data/heart_pivot.csv') # join directory to data
steps_df_pivot_fp = pre.join_cwd('data/steps_pivot.csv')
heart_df_pivot = pre.read_csv(heart_df_pivot_fp, date='Unnamed: 0')
steps_df_pivot = pre.read_csv(steps_df_pivot_fp, date='Unnamed: 0')
heart_df_pivot
steps_df_pivot # format required
Out[2]:
Out[2]:
In [3]:
vis.plot_heatmap(heart_df_pivot, # all that is necessary to plot
title='Heart Rate Average', cbar_label='BPM', # labeling
xrotation=90, cols=2, vmin=62, vmax=78, interval=2) # aesthetics and subplots
vis.plot_heatmap(steps_df_pivot,
title='Steps Sum', cbar_label='Steps',
xrotation=90, cols=2, pos=2, data_lim=(20000, 45000)
)
Out[3]:
Out[3]:
In [ ]:
In [ ]: