Skip to content

Commit

Permalink
fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-beedie committed Jul 30, 2024
1 parent 20d7288 commit dacafb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py-polars/polars/expr/name.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def replace(self, pattern: str, value: str, *, literal: bool = False) -> Expr:
│ 3 ┆ z │
└─────────┴─────────┘
>>> df.select(pl.all().name.replace("(a|e|i|o|u)", "@")).schema
Schema([('n_f@@', Int64), ('n_b@r', String)])
Schema({'n_f@@': Int64, 'n_b@r': String})
"""
return self._from_pyexpr(self._pyexpr.name_replace(pattern, value, literal))

Expand Down

0 comments on commit dacafb5

Please sign in to comment.