From ba419c9863516adb4a070a196d6385053f33b167 Mon Sep 17 00:00:00 2001 From: daviel9 Date: Thu, 24 Oct 2024 14:57:44 +0100 Subject: [PATCH] Inital testing code --- mbs_results/csw_to_spp_converter.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 mbs_results/csw_to_spp_converter.py diff --git a/mbs_results/csw_to_spp_converter.py b/mbs_results/csw_to_spp_converter.py new file mode 100644 index 00000000..67d932bc --- /dev/null +++ b/mbs_results/csw_to_spp_converter.py @@ -0,0 +1,18 @@ +import glob + +import pandas as pd + + +def csw_to_spp(filepath): + + files = glob.glob(filepath + "qv*") + glob.glob(filepath + "cp*") + + li = [] + + for f in files: + + temp_df = pd.read_csv(f) + + li.append(temp_df) + + print(f"Successfully created dataframe for {f} with shape {temp_df.shape}")