Plotting the time series data

To better understand the trends and any seasonality present in the data, it can be plotted using a basic plot function. Here, the humidity and CO2 variables of the dataset have been plotted:

    ts.plot(y="Humidity",style='.',figsize=(15,1))
    ts.plot(y="CO2",style='.',figsize=(15,1))

The following is the output:

Plotting humidity and CO2 levels across time in the same graph using matplotlib
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset