Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Where method on DataFrames can't seem to take series as conditions #9558
Comments
|
I believe the |
|
@TomAugspurger, that's correct. Is that desired behavior though? I would think that broadcasting across an index (in the same way as the final example broadcasts) would be desired. |
|
@MaximilianR the reason for this is that
FYI, |
jreback
added the
Error Reporting
label
Feb 27, 2015
jreback
added this to the
0.17.0
milestone
Feb 27, 2015
jreback
added the
Missing-data
label
Feb 27, 2015
|
@jreback Thanks! |
MaximilianR
referenced
this issue
Aug 6, 2015
Merged
BUG: DataFrame.where does not handle Series slice correctly (#10218) #10283
|
This is closed with #10283. Closing |
MaximilianR commentedFeb 26, 2015
I want to use
whereto set values across a DataFrame where a Series meets a condition.For example:
But this
returns an unedited DataFrame.
Whereas this returns just the middle row, as you'd expect:
Supplying
axis=0oraxis=1doesn't help. Am I doing something wrong? Or this unintended behavior?