Skip to content

Commit

Permalink
Merge pull request #155 from whdalsrnt/master
Browse files Browse the repository at this point in the history
refactor: trim match condition in value mapping operator
  • Loading branch information
whdalsrnt authored Jan 3, 2025
2 parents ee60901 + 8513075 commit 8954e3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ def apply_cases(self, filtered_df: pd.DataFrame) -> pd.DataFrame:
self._validate_case(case)
operator = case["operator"]
value = case["value"]
match = case["match"]
match = case["match"].strip()

if operator == "eq":
filtered_df.loc[filtered_df[key] == match, name] = value
Expand Down

0 comments on commit 8954e3f

Please sign in to comment.