Skip to content

Commit 7bf42dd

Browse files
authored
feat(python): Stabilize methods/functions (#20850)
1 parent 332bd7d commit 7bf42dd

File tree

12 files changed

+191
-241
lines changed

12 files changed

+191
-241
lines changed

py-polars/polars/dataframe/frame.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -8808,9 +8808,9 @@ def unpivot(
88088808

88098809
return self._from_pydf(self._df.unpivot(on, index, value_name, variable_name))
88108810

8811-
@unstable()
88128811
def unstack(
88138812
self,
8813+
*,
88148814
step: int,
88158815
how: UnstackDirection = "vertical",
88168816
columns: ColumnNameOrSelector | Sequence[ColumnNameOrSelector] | None = None,
@@ -8819,10 +8819,6 @@ def unstack(
88198819
"""
88208820
Unstack a long table to a wide form without doing an aggregation.
88218821
8822-
.. warning::
8823-
This functionality is considered **unstable**. It may be changed
8824-
at any point without it being considered a breaking change.
8825-
88268822
This can be much faster than a pivot, because it can skip the grouping phase.
88278823
88288824
Parameters

py-polars/polars/expr/datetime.py

-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from polars._utils.convert import parse_as_duration_string
99
from polars._utils.deprecation import deprecate_function, deprecate_nonkeyword_arguments
1010
from polars._utils.parse import parse_into_expression, parse_into_list_of_expressions
11-
from polars._utils.unstable import unstable
1211
from polars._utils.wrap import wrap_expr
1312
from polars.datatypes import DTYPE_TEMPORAL_UNITS, Date, Int32
1413

@@ -280,15 +279,10 @@ def truncate(self, every: str | dt.timedelta | Expr) -> Expr:
280279
every = parse_into_expression(every, str_as_lit=True)
281280
return wrap_expr(self._pyexpr.dt_truncate(every))
282281

283-
@unstable()
284282
def round(self, every: str | dt.timedelta | IntoExprColumn) -> Expr:
285283
"""
286284
Divide the date/datetime range into buckets.
287285
288-
.. warning::
289-
This functionality is considered **unstable**. It may be changed
290-
at any point without it being considered a breaking change.
291-
292286
- Each date/datetime in the first half of the interval
293287
is mapped to the start of its bucket.
294288
- Each date/datetime in the second half of the interval

0 commit comments

Comments
 (0)