From caddaea96998e49b444fe765fe7bc83b37be9bf9 Mon Sep 17 00:00:00 2001 From: Filipp Shpomer Date: Wed, 20 May 2026 11:06:01 -0700 Subject: [PATCH] fix: replace inplace=True mutation (pandas 3.0 CoW) --- cdisc_rules_engine/check_operators/dataframe_operators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdisc_rules_engine/check_operators/dataframe_operators.py b/cdisc_rules_engine/check_operators/dataframe_operators.py index 7564de1e4..7f0c94e43 100644 --- a/cdisc_rules_engine/check_operators/dataframe_operators.py +++ b/cdisc_rules_engine/check_operators/dataframe_operators.py @@ -1497,7 +1497,7 @@ def check_inconsistency(row): return df.apply(check_inconsistency, axis=1) def next_column_exists_and_previous_is_null(self, row) -> bool: - row.reset_index(drop=True, inplace=True) + row = row.reset_index(drop=True) for index in row[ row.isin(NULL_FLAVORS) | pd.isna(row) ].index: # leaving null values only