From 236b41a1aea682be785887acd7c476e7e98d59be Mon Sep 17 00:00:00 2001 From: Olexandr Balyk Date: Mon, 23 Dec 2024 11:34:14 -0500 Subject: [PATCH] Update a docstring --- xl2times/transforms.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/xl2times/transforms.py b/xl2times/transforms.py index 5cc1a32f..7a63d8cb 100644 --- a/xl2times/transforms.py +++ b/xl2times/transforms.py @@ -2136,10 +2136,7 @@ def process_transform_availability( def filter_by_pattern(df: pd.DataFrame, pattern: str) -> pd.DataFrame: - """ - Filter dataframe index by a regex pattern. Parameter combined indicates whether commas should - be treated as a pattern separator or belong to the pattern. - """ + """Filter dataframe index by a regex pattern.""" # Duplicates can be created when a process has multiple commodities that match the pattern df = df.filter(regex=utils.create_regexp(pattern), axis="index").drop_duplicates() exclude = df.filter(regex=utils.create_negative_regexp(pattern), axis="index").index