Skip to content

Commit

Permalink
Update py-polars/polars/utils/udfs.py
Browse files Browse the repository at this point in the history
Co-authored-by: Marco Edward Gorelli <[email protected]>
  • Loading branch information
alexander-beedie and MarcoGorelli authored Jul 27, 2023
1 parent 7d65804 commit aab5f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py-polars/polars/utils/udfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def _get_target_name(self, col: str, expression: str) -> str:
n = count()
while True:
name = f"srs{next(n)}"
if not re.search(rf"\bs{name}\b", search_expr):
if not re.search(rf"\b{name}\b", search_expr):
return name

raise NotImplementedError(f"TODO: apply_target = {self._apply_target!r}")
Expand Down

0 comments on commit aab5f4b

Please sign in to comment.