In [ ]:
'''
Try to read this file:

Docklight Log File (ASCII) - Started 6/14/2013 11:34:17.033 
 RH0000   P1040X<CR><LF>
2013/06/04 19:42:23 - G 498.00 T26.78    HT0000 RH0000   P1040X<CR><LF>
2013/06/04 19:42:25 - G 498.00 T26.78    HT0000 RH0000   P1040X<CR><LF>
2013/06/04 19:42:27 - G 498.00 T26.78    HT0000 RH0000   P1040X<CR><LF>
2013/06/04 19:42:29 - G 498.00 T26.79    HT0000 RH0000   P1040X<CR><LF>
2013/06/04 19:42:31 - G 498.00 T26.80    HT0000 RH0000   P1042X<CR><LF>
'''

In [1]:
import pandas as pd
file='./data/ICO2sensordata_asc.txt'

In [19]:
df = pd.read_csv(file,skiprows=[0,1],parse_dates =[[0,1]], index_col=0, sep=r"\s*", 
    names=['date','time','co2','temp','humid','rel_humid','press'],header=None)

In [21]:
df['co2'].plot(figsize=(12,6))


Out[21]:
<matplotlib.axes.AxesSubplot at 0xb5f1f90>

In [26]:
df_5min=df.resample('5min',how='mean')
df_5min.plot(figsize=(12,4),secondary_y='temp')


Out[26]:
<matplotlib.axes.AxesSubplot at 0x10aecf70>

In [30]:
df_5min['co2'].plot(figsize=(12,4));



In [31]:
df_5min['temp'].plot(figsize=(12,4));



In [ ]: