diff --git a/py-polars/polars/expr/name.py b/py-polars/polars/expr/name.py index 2f90206184f8e..f2dad01035fdd 100644 --- a/py-polars/polars/expr/name.py +++ b/py-polars/polars/expr/name.py @@ -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))