From 5ab43dc9e186284ee80719dd4d3756b7477d6ac5 Mon Sep 17 00:00:00 2001 From: ojha-aditya Date: Fri, 8 Nov 2024 20:58:39 +0000 Subject: [PATCH] Incorporated the functionality of having different data column name in get_timeseries function from preparation.py --- preparation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preparation.py b/preparation.py index a9adc26..b5e3bb0 100644 --- a/preparation.py +++ b/preparation.py @@ -59,7 +59,7 @@ def calc_freq(data, tim): diftim = diftim/(60*60*24*30.4375) return np.fft.fftfreq(n, d = diftim) -def get_timeseries(path, datecolumn = 'date'): +def get_timeseries(path, datecolumn = 'date', datacolumn = 'CO2 (ppm)'): ''' This function reads json files from the data collection task and returns a pandas time series with datetime as index and