GEP475GROUPINEEDANAP
Kernel: Python 3 (Anaconda)
Creating New "CO2 only" csv files, from orginal Netatmo csvs
making sure both files have same index and same column name for CO2
In [13]:
In [2]:
Out[2]:
In [3]:
Out[3]:
In [0]:
In [4]:
Out[4]:
above you can see, the 2016 csv (year1) did not have the same index as the 2017 file.
How to change:
In [5]:
Out[5]:
Now that we have the same index, we'll go ahead and create the new files.
isolating the CO2 data
In [6]:
In [7]:
using to_csv
In [8]:
In [9]:
Out[9]:
In [10]:
In [11]:
In [12]:
Out[12]:
Next, I want to create another csv file that has the column names already inside. (I dont know a better way)*
In [14]:
In [15]:
Out[15]:
Now we are left with the last two files, 2016 and 2017 CO2ONLY, and need to combine them
Using Concatenate
In [16]:
In [17]:
These cells are just to convince myself the data was combined correctly
In [18]:
Out[18]:
In [19]:
Out[19]:
In [20]:
In [21]:
In [22]:
In [23]:
In [24]:
In [25]:
Now, finally, we make the last csv file. It will include all the CO2 data from years 2016 and 2017
In [26]:
In [27]:
Out[27]:
here, I'd like to make another csv without the extra columb.. HELP SOTO
In [28]:
In [29]:
Out[29]:
Time
2016-02-19 13:26:00 NaN
2016-02-19 13:27:00 718.0
2016-02-19 13:27:00 NaN
2016-02-19 13:31:00 337.0
2016-02-19 13:36:00 332.0
Name: ppm, dtype: float64
In [30]:
In [31]:
Out[31]:
In [0]: