Skip to content

Commit

Permalink
Specify v0.17 in deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zundertj committed Jan 19, 2023
1 parent 2de75fc commit 30ee907
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions py-polars/polars/internals/dataframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -4314,7 +4314,8 @@ def with_column(self, column: pli.Series | pli.Expr) -> DataFrame:
existing data.
.. deprecated:: 0.15.14
`with_column` will be removed in favor of the more generic `with_columns`.
`with_column` will be removed in favor of the more generic `with_columns`
in version 0.17.0.
Parameters
----------
Expand All @@ -4324,7 +4325,7 @@ def with_column(self, column: pli.Series | pli.Expr) -> DataFrame:
"""
warnings.warn(
"`with_column` has been deprecated in favor of `with_columns`."
" This method will be removed in the future",
" This method will be removed in version 0.17.0",
category=DeprecationWarning,
stacklevel=2,
)
Expand Down
5 changes: 3 additions & 2 deletions py-polars/polars/internals/lazyframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -2675,7 +2675,8 @@ def with_column(self: LDF, column: pli.Series | pli.Expr) -> LDF:
existing data.
.. deprecated:: 0.15.14
`with_column` will be removed in favor of the more generic `with_columns`.
`with_column` will be removed in favor of the more generic `with_columns`
in version 0.17.0.
Parameters
----------
Expand All @@ -2685,7 +2686,7 @@ def with_column(self: LDF, column: pli.Series | pli.Expr) -> LDF:
"""
warnings.warn(
"`with_column` has been deprecated in favor of `with_columns`."
" This method will be removed in the future",
" This method will be removed in version 0.17.0",
category=DeprecationWarning,
stacklevel=2,
)
Expand Down

0 comments on commit 30ee907

Please sign in to comment.