-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Inconsistent handling of duplicate axes + mixed dtypes in DataFrame.where
#25399
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
Comments
cc @toobaz @batterseapower : What is the |
@gfyoung ah - that’s from Ipython and not important. I’ve removed it from the example. |
This looks okay on master. Could use a test
|
hey @mroeschke, I would like to work on this issue please can u help me with that. Thanks |
@Bhavay192 you can view our contributing guide here https://pandas.pydata.org/pandas-docs/stable/development/contributing.html#contributing-your-changes-to-pandas |
Hey @mroeschke, thanks for replying could you please tell me what tests needs to be performed?? |
A unit test needs to be written for the code above following this guide: https://pandas.pydata.org/pandas-docs/stable/development/contributing_codebase.html#writing-tests |
take |
Code Sample, a copy-pastable example if possible
Problem description
It doesn't make sense that
a
,b
andc
work butd
doesn't. The dtype of a column shouldn't affect whether or not masking suceeds.Expected Output
a.astype('f8').equals(b.astype('f8')) and b.astype('f8').equals(c.astype('f8')) and c.astype('f8').equals(d.astype('f8'))
Output of
pd.show_versions()
pandas: 0.24.1
pytest: 3.1.2
pip: 19.0.2
setuptools: 39.0.1
Cython: 0.27.2
numpy: 1.16.1
scipy: 1.2.1
pyarrow: 0.9.0
xarray: None
IPython: 6.1.0
sphinx: None
patsy: 0.4.1
dateutil: 2.8.0
pytz: 2018.9
blosc: None
bottleneck: 1.3.0.dev0
tables: 3.4.4
numexpr: 2.6.9
feather: None
matplotlib: 2.2.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: 3.8.0
bs4: 4.6.0
html5lib: 0.9999999
sqlalchemy: 1.1.11
pymysql: None
psycopg2: None
jinja2: 2.9.6
s3fs: None
fastparquet: 0.1.5
pandas_gbq: None
pandas_datareader: None
gcsfs: None
The text was updated successfully, but these errors were encountered: