Please describe the changes proposed in the pull request:
all forms of pivot_longer handled by two major functions reshape_by_spec and reshape_by_spec_others
at its core, any pivot_longer function has to create a spec and pass to one of the two functions above.
add lots of comments on the implementation logic (for future me or others)
deprecate dropna - no perf difference if user does it, and is not needed within pivot_longer, plus we avoid the complexity of determing which NA rows to drop
PR Description
Please describe the changes proposed in the pull request:
reshape_by_spec
andreshape_by_spec_others
dropna
- no perf difference if user does it, and is not needed withinpivot_longer
, plus we avoid the complexity of determing which NA rows to dropThis PR improves pivot_longer.
Please tag maintainers to review.