In [ ]:
import opengrid as og
plt = og.plot_style()

In [ ]:
ts = og.datasets.get('water_2016_hour')

In [ ]:
ts.plot()

In [ ]:
ts = ts.reset_index()

In [ ]:
plt.figure()
ts2=ts[ts>2]
ts2=ts[ts<20]
ts2.hist(bins=100)
plt.xlabel('Water consumption [l/min]')
plt.ylabel('Frequency')
plt.title('Water consumption histogram')

In [ ]: