From fc5d04716c9eb1a7aad57a841125254714906208 Mon Sep 17 00:00:00 2001 From: Markus Pichler Date: Fri, 26 Apr 2024 06:59:34 +0200 Subject: [PATCH] style: fixed pandas deprecation warning --- ehyd_tools/design_rainfall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ehyd_tools/design_rainfall.py b/ehyd_tools/design_rainfall.py index 09692d2..f6d1b26 100644 --- a/ehyd_tools/design_rainfall.py +++ b/ehyd_tools/design_rainfall.py @@ -217,7 +217,7 @@ def read_ehyd_design_rainfall(filepath_or_buffer): df = df.dropna(axis=0, how='all') # convert string column names to integers - df.columns = [int(c.replace('min', '')) for c in df.columns] + df.columns = [int(c.replace('T', '')) for c in df.columns] # df.columns.name = 'Jährlichkeit' df.columns.name = INDICES.RETURN_PERIOD