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