.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "_examples\Pre-Processing\file_exploration_tests_rough.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_Pre-Processing_file_exploration_tests_rough.py: Running Tests, Ignore This File ================================ .. GENERATED FROM PYTHON SOURCE LINES 5-28 .. code-block:: default :lineno-start: 5 from typing import Counter import pandas as pd import os from datetime import datetime filepath = r"D:\FILES\Desktop\Dissertation ICL\OUCRU\01NVa_Dengue\Adults\01NVa-003-2009\PPG" files = os.listdir(filepath) first = os.path.join(filepath, files[0]) #second = os.path.join(filepath, files[1]) f = pd.read_csv(first) #s = pd.read_csv(second) print(f) #print(s['COUNTER']) #print(s['COUNTER'].iloc[0] - f['COUNTER'].iloc[-1]) #print(files[0]) #test = files[0][:-13] #test = test.replace('T','') #print(test) #datetime_conversion_check = datetime.strptime(test, '%Y%m%d%H%M%S') #print(datetime_conversion_check) .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.000 seconds) .. _sphx_glr_download__examples_Pre-Processing_file_exploration_tests_rough.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: file_exploration_tests_rough.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: file_exploration_tests_rough.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_