From 1ad84bfa69bb3a044c5dd3778f074cef850db94e Mon Sep 17 00:00:00 2001 From: Marco Gorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Thu, 7 Mar 2024 18:19:20 +0000 Subject: [PATCH] more fixups --- py-polars/polars/dataframe/frame.py | 7 +++---- py-polars/polars/lazyframe/frame.py | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/py-polars/polars/dataframe/frame.py b/py-polars/polars/dataframe/frame.py index 50f9e05d5e75..a2366c7fbee9 100644 --- a/py-polars/polars/dataframe/frame.py +++ b/py-polars/polars/dataframe/frame.py @@ -7267,11 +7267,11 @@ def pivot( If None, all columns not specified in the index and columns arguments will be used. index - The column(s) whose values will become the index of the output `DataFrame`. + The column(s) whose values will act like row labels in the output `DataFrame`. columns The column(s) whose values will become the columns of the output `DataFrame`. If these columns are not :class:`String` columns, their values - will be coerced to strings, since polars column names must be strings. + will be coerced to strings, since Polars column names must be strings. aggregate_function A function to aggregate multiple `values` with the same `index` and `columns` prior to pivoting, equivalent to using :func:`group_by` as a @@ -7292,8 +7292,7 @@ def pivot( `maintain_order=False` is not currently implemented. sort_columns Whether to order the non-index columns of the output `DataFrame` in - alphabetical order (if `sort_columns=True`), or in the same order they first - appeared in the `columns` of the input `DataFrame` (if `sort_columns=False`). + alphabetical order (if `sort_columns=True`). separator A string used as the separator/delimiter in generated column names. Only used when there are multiple `values` columns. diff --git a/py-polars/polars/lazyframe/frame.py b/py-polars/polars/lazyframe/frame.py index 86ebc2bfeef5..575ed23904e4 100644 --- a/py-polars/polars/lazyframe/frame.py +++ b/py-polars/polars/lazyframe/frame.py @@ -5688,8 +5688,8 @@ def melt( The name to give to the measured variables column; defaults to `"value"`. streamable Whether to allow this node to run in the streaming engine. - If `streamable=True`, the output of the melt operation will not have a - stable ordering. + If this runs in streaming, the output of the melt operation + will not have a stable ordering. See Also --------