Skip to content

Commit

Permalink
more fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Mar 7, 2024
1 parent 0c0fd29 commit 1ad84bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions py-polars/polars/dataframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions py-polars/polars/lazyframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
--------
Expand Down

0 comments on commit 1ad84bf

Please sign in to comment.