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

BUG: DataFrame.pivot not respecting None as column name #48293

Merged
merged 10 commits into from
Sep 12, 2022

Conversation

phofl
Copy link
Member

@phofl phofl commented Aug 28, 2022

  • closes #xxxx (Replace xxxx with the Github issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

Columns can never be empty when called by the user, should we deprecate positional arguments here and then remove the default? avoids the check on our side and simplifies things a bit

@phofl phofl added the Reshaping Concat, Merge/Join, Stack/Unstack, Explode label Aug 28, 2022
@mroeschke
Copy link
Member

Columns can never be empty when called by the user, should we deprecate positional arguments here and then remove the default? avoids the check on our side and simplifies things a bit

+1 for this.

@phofl
Copy link
Member Author

phofl commented Aug 29, 2022

Will open a pr to backport to 1.5rc then, will convert this to draft till the other pr is merged then to simplify the backport

@phofl phofl marked this pull request as draft August 29, 2022 18:34
@phofl phofl marked this pull request as ready for review August 31, 2022 19:56
@phofl
Copy link
Member Author

phofl commented Aug 31, 2022

cc @mroeschke I think this is ready for another look now

@mroeschke mroeschke added this to the 1.6 milestone Sep 9, 2022
Copy link
Member

@mroeschke mroeschke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small item otherwise LGTM

Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
@mroeschke mroeschke merged commit ef32d4c into pandas-dev:main Sep 12, 2022
@mroeschke
Copy link
Member

Thanks @phofl

@phofl phofl deleted the pivot_none_column branch September 12, 2022 18:36
@mroeschke mroeschke modified the milestones: 1.6, 2.0 Oct 13, 2022
noatamir pushed a commit to noatamir/pandas that referenced this pull request Nov 9, 2022
…8293)

* BUG: DataFrame.pivot not respecting None as column name

* Add gh ref

* Fix test

* Add comment

* Update doc/source/whatsnew/v1.6.0.rst

Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>

Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants