Skip to content

Commit

Permalink
fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-beedie committed Nov 3, 2024
1 parent de1744b commit 4836ee3
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 @@ -378,7 +378,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 4836ee3

Please sign in to comment.