From 671e0b09f16f17b8edb476a3dccad5064166a01f Mon Sep 17 00:00:00 2001 From: Kai Droste Date: Mon, 5 Sep 2022 14:37:28 +0200 Subject: [PATCH] fixing issue #62 --- ebcpy/preprocessing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebcpy/preprocessing.py b/ebcpy/preprocessing.py index 8b3b3082..da9c0ef0 100644 --- a/ebcpy/preprocessing.py +++ b/ebcpy/preprocessing.py @@ -134,7 +134,7 @@ def convert_index_to_datetime_index(df, unit_of_index="s", origin=datetime.now() # Convert strings to numeric values. old_index = pd.to_numeric(old_index) # Convert to seconds. - old_index *= _unit_factor_to_seconds + old_index /= _unit_factor_to_seconds # Alter the index df.index = pd.to_datetime(old_index, unit="s", origin=origin)