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

Pivot on column value #1075

Open
rolyp opened this issue Aug 25, 2024 · 0 comments
Open

Pivot on column value #1075

rolyp opened this issue Aug 25, 2024 · 0 comments

Comments

@rolyp
Copy link
Collaborator

rolyp commented Aug 25, 2024

Pivoting is a basic data reshaping operation familiar from spreadsheets and data frames. The idea is to treat the values in a column as a dimension, turning each value into an index. Often pivoting is combined with aggregation (e.g. summing or averaging another column and using the new dimenion to summarise). Non-aggregating variants either produce a nested structure where each of the new indices is mapped to a nested table, or combine pivoting with project to retain a flat structure. Variants on this kind of operation like this keeps cropping up in examples (see also the groupBy proposal below).

We should take a look at Pandas for an idea of how pivoting is provided in Python. In Pandas pivot reshapes without aggregation; pivot_table also provides aggregation.

See also:

@rolyp rolyp added this to Fluid Aug 25, 2024
@github-project-automation github-project-automation bot moved this to Proposed in Fluid Aug 25, 2024
@rolyp rolyp moved this from Proposed to Planned in Fluid Aug 25, 2024
@rolyp rolyp mentioned this issue Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Planned
Development

No branches or pull requests

1 participant