Skip to content

DOC: Reshaping Improvement #52142

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

Closed
1 task done
mcp292 opened this issue Mar 23, 2023 · 2 comments · Fixed by #52227
Closed
1 task done

DOC: Reshaping Improvement #52142

mcp292 opened this issue Mar 23, 2023 · 2 comments · Fixed by #52227
Labels
Docs Needs Triage Issue that has not been reviewed by a pandas team member

Comments

@mcp292
Copy link

mcp292 commented Mar 23, 2023

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://pandas.pydata.org/pandas-docs/stable/user_guide/reshaping.html

Documentation problem

The reshaping section starts off with:

Data is often stored in so-called “stacked” or “record” format

but never goes on to specify which is which, and this is not discussed elsewhere in the documentation.

Suggested fix for documentation

I think it'd be clearer to discuss in terms of long vs wide form, which is well documented elsewhere, and/or point to which picture above is stacked and which is record. This would set the reader up to properly visualize the operations and discussions to come.

Also, the section should be renamed: "Reshaping and pivot tables" -> "Reshaping and pivoting tables".

@mcp292 mcp292 added Docs Needs Triage Issue that has not been reviewed by a pandas team member labels Mar 23, 2023
@mcp292
Copy link
Author

mcp292 commented Mar 23, 2023

It might also be worth mentioning that melt() is analogous to pivot().

@TravisGibbs
Copy link
Contributor

Hi, I'm new and I would like to take this if it is approved. I mocked an image with labels that would help with the suggested fix. I agree that it would also be helpful to have some mention of the synonymous terms of wide and long in the text below the first image.

reshaping_pivot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs Needs Triage Issue that has not been reviewed by a pandas team member
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants