Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] pivot_longer_spec #1362

Merged
merged 37 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
08da760
implement pivot_longer_spec
May 8, 2024
59ad3fd
add tests for pivot_longer_spec
May 8, 2024
24031ce
improve perf for sort_by_appearance, general refactor, added docs to …
May 10, 2024
7bee792
changelog
May 10, 2024
57d87af
minor changes
May 10, 2024
91984dc
missing comma in docs
May 10, 2024
0c38c48
ensure .value position in pivot_longer_spec
May 10, 2024
8014a60
use nunique instead of len(arr.unique)
May 10, 2024
3968ecc
handle duplicated columns in pivot_longer_spec
May 10, 2024
c1f87c5
Merge dev into samukweku/pivot_longer_spec
ericmjl May 10, 2024
12306f5
add more descriptions in the docs on the relevance of pivot_longer_spec
May 10, 2024
71308d9
pivot_longer_spec
May 11, 2024
e5871dc
remove irrelevant files
May 12, 2024
2319cbe
remove irrelevant files
May 12, 2024
7661919
typo
May 12, 2024
7e7d004
fix failing tests
May 13, 2024
c868d89
add check for spec dataframe
May 17, 2024
fc728d8
explicit positions in pivot_longer_spec
May 18, 2024
a5c027e
Merge dev into samukweku/pivot_longer_spec
ericmjl May 19, 2024
333390a
Merge dev into samukweku/pivot_longer_spec
ericmjl May 23, 2024
be0512a
Merge dev into samukweku/pivot_longer_spec
ericmjl May 27, 2024
d0637cb
Merge branch 'dev' into samukweku/pivot_longer_spec
ericmjl Jun 3, 2024
eeec19b
Merge dev into samukweku/pivot_longer_spec
ericmjl Jun 4, 2024
eb33ad4
use future annotations
Jun 8, 2024
0327509
Merge branch 'dev' into samukweku/pivot_longer_spec
samukweku Jun 12, 2024
6e2af59
change approach to transformation
Jun 14, 2024
ca591aa
create function for dropna
Jun 14, 2024
87a3cac
fix docs
Jun 14, 2024
8e31805
Merge branch 'dev' into samukweku/pivot_longer_spec
samukweku Jun 14, 2024
78c7843
changelog
Jun 14, 2024
f6846a8
Merge dev into samukweku/pivot_longer_spec
ericmjl Jun 18, 2024
1557b93
Merge dev into samukweku/pivot_longer_spec
ericmjl Jun 18, 2024
bda0398
Merge dev into samukweku/pivot_longer_spec
ericmjl Jun 18, 2024
ce1dfdd
Merge branch 'dev' into samukweku/pivot_longer_spec
samukweku Jun 21, 2024
580dfc6
Merge dev into samukweku/pivot_longer_spec
ericmjl Jun 28, 2024
429ca4c
Merge dev into samukweku/pivot_longer_spec
ericmjl Jun 28, 2024
3596b4d
Merge branch 'dev' into samukweku/pivot_longer_spec
samukweku Jul 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

## [Unreleased]

- [ENH] Improve `pivot_longer` when `sort_by_appearance` is True. Added `pivot_longer_spec` for more control on how the dataframe should be unpivoted. -@samukweku #1361
- [ENH] Added a `complete` method for polars. - Issue #1352 @samukweku
- [ENH] `read_commandline` function now supports polars - Issue #1352
- [ENH] Improved performance for non-equi joins when using numba - @samukweku PR #1341
- [ENH] Added a `clean_names` method for polars - it can be used to clean the column names, or clean column values . Issue #1343 @samukweku
- [ENH] Added a `pivot_longer` method, and a `pivot_longer_spec` function for polars - Issue #1352 @samukweku
- [ENH] Added a `row_to_names` method for polars. Issue #1352 @samukweku
- [ENH] `read_commandline` function now supports polars - Issue #1352 @samukweku
- [ENH] `xlsx_cells` function now supports polars - Issue #1352 @samukweku
- [ENH] `xlsx_table` function now supports polars - Issue #1352 @samukweku
- [ENH] Added a `pivot_longer` method, and a `pivot_longer_spec` function for polars - Issue #1352 @samukweku
- [ENH] Added a `clean_names` method for polars - it can be used to clean the column names, or clean column values . Issue #1343 @samukweku
- [ENH] Improved performance for non-equi joins when using numba - @samukweku PR #1341
- [ENH] pandas Index,Series, DataFrame now supported in the `complete` method. - PR #1369 @samukweku

## [v0.27.0] - 2024-03-21
Expand Down
3 changes: 2 additions & 1 deletion janitor/functions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
from .limit_column_characters import limit_column_characters
from .min_max_scale import min_max_scale
from .move import move
from .pivot import pivot_longer, pivot_wider
from .pivot import pivot_longer, pivot_longer_spec, pivot_wider
from .process_text import process_text
from .remove_columns import remove_columns
from .remove_empty import remove_empty
Expand Down Expand Up @@ -132,6 +132,7 @@
"min_max_scale",
"move",
"pivot_longer",
"pivot_longer_spec",
"pivot_wider",
"process_text",
"remove_columns",
Expand Down
Loading
Loading