-
-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: pivot with nans gives a seemingly wrong result #7466
Comments
@jreback could use a hand here.... i've figure out what the issue is, but not totally sure how to fix it in BUT a this is done by selector = self.sorted_labels[-1] + stride * comp_index problem is that if the "remaining labels" have i tried just slicing out anything you don't need to go too deep but if you have any pointers they would be much appreciated |
bump? |
@jreback i have some notes on this i can put them up later today at the latests this weekend |
sure...just going thru issuess |
related to #3588
This test
seems very odd to me, even though the expected result is constructed by hand.
Here's
df
andresult
:The way I understand
pivot
here is that it makes aDataFrame
witha
as theindex
,b
as the columns and then uses the third argument, in this casec
as values, wherea
andb
form a kind of coordinate system forc
. Thus, instead of the current output, I would expect the result to beIf, on the other hand, you don't have any
nan
s in your frame, the result is what I would expect:I'll have a look at #3588 to see if this is a regression, or if I'm just misunderstanding how this is supposed to work.
I have a suspicion that this is related to #7403
The text was updated successfully, but these errors were encountered: