Skip to content

Commit

Permalink
docs(python): Fix references in deprecation notes (#12877)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli authored Dec 3, 2023
1 parent 05d1666 commit 447e750
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions py-polars/docs/source/reference/expressions/string.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ The following methods are available under the `expr.str` attribute.
Expr.str.to_date
Expr.str.to_datetime
Expr.str.to_decimal
Expr.str.to_integer
Expr.str.to_lowercase
Expr.str.to_titlecase
Expr.str.to_time
Expand Down
1 change: 1 addition & 0 deletions py-polars/docs/source/reference/series/string.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ The following methods are available under the `Series.str` attribute.
Series.str.to_date
Series.str.to_datetime
Series.str.to_decimal
Series.str.to_integer
Series.str.to_lowercase
Series.str.to_time
Series.str.to_titlecase
Expand Down
8 changes: 4 additions & 4 deletions py-polars/polars/expr/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ def union(self, other: IntoExpr) -> Expr:
Compute the SET UNION between the elements in this list and the elements of `other`.
.. deprecated:: 0.18.10
This method has been renamed to `Expr.list.set_union`.
This method has been renamed to :meth:`set_union`.
""" # noqa: W505
return self.set_union(other)
Expand All @@ -1255,7 +1255,7 @@ def difference(self, other: IntoExpr) -> Expr:
Compute the SET DIFFERENCE between the elements in this list and the elements of `other`.
.. deprecated:: 0.18.10
This method has been renamed to `Expr.list.set_difference`.
This method has been renamed to :meth:`set_difference`.
""" # noqa: W505
return self.set_difference(other)
Expand All @@ -1266,7 +1266,7 @@ def intersection(self, other: IntoExpr) -> Expr:
Compute the SET INTERSECTION between the elements in this list and the elements of `other`.
.. deprecated:: 0.18.10
This method has been renamed to `Expr.list.set_intersection`.
This method has been renamed to :meth:`set_intersection`.
""" # noqa: W505
return self.set_intersection(other)
Expand All @@ -1277,7 +1277,7 @@ def symmetric_difference(self, other: IntoExpr) -> Expr:
Compute the SET SYMMETRIC DIFFERENCE between the elements in this list and the elements of `other`.
.. deprecated:: 0.18.10
This method has been renamed to `Expr.list.set_symmetric_difference`.
This method has been renamed to :meth:`set_symmetric_difference`.
""" # noqa: W505
return self.set_symmetric_difference(other)
Expand Down
2 changes: 1 addition & 1 deletion py-polars/polars/lazyframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ def read_json(cls, source: str | Path | IOBase) -> Self:
Read a logical plan from a JSON file to construct a LazyFrame.
.. deprecated:: 0.18.12
This class method has been renamed to `deserialize`.
This class method has been renamed to :meth:`deserialize`.
Parameters
----------
Expand Down
8 changes: 4 additions & 4 deletions py-polars/polars/series/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ def union(self, other: Series) -> Series:
Compute the SET UNION between the elements in this list and the elements of `other`.
.. deprecated:: 0.18.10
This method has been renamed to `Series.list.set_union`.
This method has been renamed to :meth:`set_union`.
""" # noqa: W505
return self.set_union(other)
Expand All @@ -785,7 +785,7 @@ def difference(self, other: Series) -> Series:
Compute the SET DIFFERENCE between the elements in this list and the elements of `other`.
.. deprecated:: 0.18.10
This method has been renamed to `Series.list.set_difference`.
This method has been renamed to :meth:`set_difference`.
""" # noqa: W505
return self.set_difference(other)
Expand All @@ -796,7 +796,7 @@ def intersection(self, other: Series) -> Series:
Compute the SET INTERSECTION between the elements in this list and the elements of `other`.
.. deprecated:: 0.18.10
This method has been renamed to `Series.list.set_intersection`.
This method has been renamed to :meth:`set_intersection`.
""" # noqa: W505
return self.set_intersection(other)
Expand All @@ -807,7 +807,7 @@ def symmetric_difference(self, other: Series) -> Series:
Compute the SET SYMMETRIC DIFFERENCE between the elements in this list and the elements of `other`.
.. deprecated:: 0.18.10
This method has been renamed to `Series.list.set_symmetric_difference`.
This method has been renamed to :meth:`set_symmetric_difference`.
""" # noqa: W505
return self.set_symmetric_difference(other)
Expand Down

0 comments on commit 447e750

Please sign in to comment.