Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel.oranyeli committed Jun 20, 2024
1 parent 513fe73 commit 2399484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion janitor/polars/pivot_longer.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def pivot_longer(
└──────────────┴─────────────┴──────────────┴─────────────┴───────────┘
Replicate polars' [melt](https://docs.pola.rs/py-polars/html/reference/dataframe/api/polars.DataFrame.melt.html#polars-dataframe-melt):
>>> df.janitor.pivot_longer(index = 'Species').sort(by=pl.all())
>>> df.pivot_longer(index = 'Species').sort(by=pl.all())
shape: (8, 3)
┌───────────┬──────────────┬───────┐
│ Species ┆ variable ┆ value │
Expand Down

0 comments on commit 2399484

Please sign in to comment.