In [ ]:
    
import opengrid as og
from opengrid import datasets
    
In [ ]:
    
%matplotlib inline
    
In [ ]:
    
df = datasets.get('gas_dec2016_min')
    
In [ ]:
    
# we only want to demo on one sensor
ts = df['313b'].head(100)
    
In [ ]:
    
ts.plot()
    
In [ ]:
    
og.analysis.count_peaks(ts)