-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Object dtype gives ValueError in _maybe_cast_with_dtype #32413
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
Looks like the issue is in Index.where, shouldnt pass |
regression in #27883 (i.e. 1.0.0) e47362a is the first bad commit
|
I tested against |
we would take a PR with a validation test |
I see, I can add a test for this. |
take |
also seems fixed on 1.2.x (fixed in 1.2.0) |
take |
Problem description
Data is being cast to incorrect dtype based on inferred dtype and gives a ValueError.
Issue was not present in pandas==0.25.3
Expected Output
With pandas==0.25.3
fixed_index
Index([1.0, 'a1'], dtype='object')
Output of
pd.show_versions()
python : 3.7.6.final.0
pandas : 1.0.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.2.0.post20200210
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : 1.3.0
xlsxwriter : None
numba : None
The text was updated successfully, but these errors were encountered: