.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "_examples\tutorials\plot_data_manipulation.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_tutorials_plot_data_manipulation.py: Data manipulation ==================== .. note:: This is a copy of the jupyter notebook with the following name: Data_manipulation_ECG_PPG.ipynb. The other option is to use the sphinx extension sphinx-nbexamples. .. GENERATED FROM PYTHON SOURCE LINES 11-34 .. rst-class:: sphx-glr-script-out Out: .. code-block:: none Importing the dtw module. When using in academic works please cite: T. Giorgino. Computing and Visualizing Dynamic Time Warping Alignments in R: The dtw Package. J. Stat. Soft., doi:10.18637/jss.v031.i07. | .. code-block:: default :lineno-start: 12 # Import generic import os # Import vital_sqi from vital_sqi.data.signal_io import ECG_reader # ------------------------------------ # Load data # ------------------------------------ # Create path folder_name = '../../tests/test_data' file_name = 'example.edf' path = os.path.join(folder_name, file_name) # Read (there is an error when loading) #df, info = ECG_reader(path,'edf') # Show #print(df) # ----------------------------------- # # ----------------------------------- .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 3.423 seconds) .. _sphx_glr_download__examples_tutorials_plot_data_manipulation.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: plot_data_manipulation.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_data_manipulation.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_