.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "_examples\tutorial\Test-plotting.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr__examples_tutorial_Test-plotting.py: Plotting data from an CSV file (script) ======================================= Example plot of 'PULSE_BPM' and 'SPO2_PCT' from a CSV file. .. GENERATED FROM PYTHON SOURCE LINES 8-27 .. code-block:: default :lineno-start: 9 import numpy as np import pandas as pd import matplotlib.pyplot as plt #Remember to Change Path df = pd.read_csv(r"D:\FILES\Desktop\Dissertation ICL\OUCRU\01NVa_Dengue\Adults\01NVa-003-2001\PPG\01NVa-003-2001 Smartcare.csv") #visualising Data df #Plotting Data ax = plt.gca() df[:10000].plot(kind='line',x='TIMESTAMP_MS',y='PULSE_BPM',ax=ax) df[:10000].plot(kind='line',x='TIMESTAMP_MS',y='SPO2_PCT', color='red', ax=ax) plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.000 seconds) .. _sphx_glr_download__examples_tutorial_Test-plotting.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: Test-plotting.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: Test-plotting.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_