Skip to content

Commit

Permalink
update "versionadded" tag
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-beedie committed Apr 28, 2024
1 parent 2e346a9 commit d051f9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions py-polars/polars/dataframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -1656,6 +1656,8 @@ def to_torch(
"""
Convert DataFrame to a 2D PyTorch tensor, Dataset, or dict of Tensors.
.. versionadded:: 0.20.23
Parameters
----------
return_type : {"tensor", "dataset", "dict"}
Expand Down Expand Up @@ -4285,6 +4287,8 @@ def sql(self, query: str, *, table_name: str | None = None) -> Self:
"""
Execute a SQL query against the DataFrame.
.. versionadded:: 0.20.24
.. warning::
This functionality is considered **unstable**, although it is close to
being considered stable. It may be changed at any point without it being
Expand Down
2 changes: 2 additions & 0 deletions py-polars/polars/lazyframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -1223,6 +1223,8 @@ def sql(self, query: str, *, table_name: str | None = None) -> Self:
"""
Execute a SQL query against the LazyFrame.
.. versionadded:: 0.20.23
.. warning::
This functionality is considered **unstable**, although it is close to
being considered stable. It may be changed at any point without it being
Expand Down

0 comments on commit d051f9c

Please sign in to comment.