We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Using a DataFrame of bools to mask some values in another dataframe works great:
In [84]: pd.DataFrame([[1,2],[3,4]]).mask(pd.DataFrame([[True,False],[False, True]])) Out[84]: 0 1 0 NaN 2 1 3 NaN
but not if we try on a dataframe with a single index:
In [85]: pd.DataFrame([[1,2],]).mask(pd.DataFrame([[True,False],])) AssertionError: Number of Block dimensions (1) must equal number of axes (2)
The text was updated successfully, but these errors were encountered:
what version are you using?
Sorry, something went wrong.
0.11.0
different error on latest master ... marked as a bug for 0.13
@lionelr thanks for the report
Thanks for this fast fix
no problemo
Successfully merging a pull request may close this issue.
Using a DataFrame of bools to mask some values in another dataframe works great:
but not if we try on a dataframe with a single index:
The text was updated successfully, but these errors were encountered: