Skip to content

Backport PR #27631 on branch 0.25.x (BUG: raise when wrong level name is passed to "unstack") #27640

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

Merged

Conversation

meeseeksmachine
Copy link
Contributor

Backport PR #27631: BUG: raise when wrong level name is passed to "unstack"

@lumberbot-app lumberbot-app bot added this to the 0.25.1 milestone Jul 29, 2019
@gfyoung gfyoung added Error Reporting Incorrect or improved errors from pandas MultiIndex Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels Jul 30, 2019
@gfyoung
Copy link
Member

gfyoung commented Jul 30, 2019

@jreback @TomAugspurger @toobaz: Is there a reason for back-porting this? The bug that was being addressed was more than two years old.

@toobaz
Copy link
Member

toobaz commented Jul 30, 2019

The only reason I can think of is "this is a very simple patch". But definitely not urgent.

@toobaz
Copy link
Member

toobaz commented Jul 30, 2019

(Oh, and: over time, backporting patches might be easier if we do it routinely, so the code is more similar. But I have no idea of whether we have any general rule)

@TomAugspurger
Copy link
Contributor

TomAugspurger commented Jul 30, 2019 via email

@jreback
Copy link
Contributor

jreback commented Jul 30, 2019

yeah this was fine (and note already was for 0.25.1)

@jreback jreback merged commit 1125126 into pandas-dev:0.25.x Jul 30, 2019
@jorisvandenbossche
Copy link
Member

Yeah, simple bug fixes are (IMO) fine to backport. It's relatively painless
these days.

But note that we should still be careful, and not just backport any bug fix. It happens regularly that a bug fix causes a new bug.

@toobaz
Copy link
Member

toobaz commented Jul 30, 2019

But note that we should still be careful, and not just backport any bug fix. It happens regularly that a bug fix causes a new bug.

I agree, but in general should this be a stopper? I mean: do we consider regressions in 0.25.* more problematic than regressions in 1.*?

@jorisvandenbossche
Copy link
Member

do we consider regressions in 0.25.* more problematic than regressions in 1.*?

Yes, we do (IMO). People should more or less be able to carelessly update 0.25.0 to 0.25.1 while updating a x.y to x.y+1 always should be done carefully (as there can always be API breakages anyway).

@toobaz
Copy link
Member

toobaz commented Jul 30, 2019

Yes, we do (IMO). People should more or less be able to carelessly update 0.25.0 to 0.25.1 while updating a x.y to x.y+1

Right, I missed that, I had just in mind the comparison between 0.25.0->0.25.1 and, say, 1.0.0->1.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error Reporting Incorrect or improved errors from pandas MultiIndex Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants