latarara

Scatterplot

Sep 4th, 2021
555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. # model
  2. t_min = data.index.min()
  3. t_max = pd.Timestamp('2015-01-01')
  4.  
  5. plt.figure(figsize=(18,5))
  6. plt.xlim(t_min, t_max)
  7.  
  8. location_filter = data.location == 'Fitzroy Gardens'
  9. time_filter     = data.index < t_max
  10. data_filtered   = data[location_filter & time_filter]
  11. #boards          = data_filtered.boardid.unique()
  12.  
  13. plt.plot(data_filtered.index, data_filtered.temp_avg, ',', c='g', alpha=.9)
  14. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment