Skip to content

Commit

Permalink
fix: replace removesuffix() with split(), the former is not available…
Browse files Browse the repository at this point in the history
… <= Python 3.7;
  • Loading branch information
WenjieDu committed Dec 20, 2023
1 parent e0badc8 commit 6e95d14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsdb/loading_funcs/electricity_transformer_temperature.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def load_ett(local_path):
file_path = os.path.join(local_path, sub_set)
df = pd.read_csv(file_path, index_col="date")
df.index = pd.to_datetime(df.index)
df_name = sub_set.removesuffix(".csv")
df_name = sub_set.split(".csv")[0]
data[df_name] = df

return data

0 comments on commit 6e95d14

Please sign in to comment.