-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Series.update fails with categorical types #25744
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
Another version of the example code is
which fails just the same. |
Thanks for the report. Investigation and PRs welcome! |
This fails with dataframes too:
A B C Now imagine I want to have just column 'C' as categorical:
[object, int64, object] |
fixed in master, xref #33984
|
@mroeschke which actions are still open for this issue? I see that a test is added and it is fixed on master/ |
from #34030 (comment)
|
So we need a test for this? @simonjayhawkins |
take |
take |
With the dtype=None, the
s1
series is updated to be['b', 'a', 'c']
but with thedtype=cats
, the update fails with error "ValueError: NumPy boolean array indexing assignment cannot assign 3 input values to the 2 output values where the mask is true"pandas: 0.24.2
pytest: 3.3.2
pip: 18.0
setuptools: 40.5.0
Cython: 0.27.3
numpy: 1.15.4
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: 7.2.0
sphinx: 1.6.6
patsy: 0.5.1
dateutil: 2.7.2
pytz: 2018.4
blosc: None
bottleneck: 1.2.1
tables: None
numexpr: 2.6.4
feather: None
matplotlib: 3.0.1
openpyxl: 2.4.10
xlrd: 1.1.0
xlwt: 1.3.0
xlsxwriter: 1.0.2
lxml.etree: 4.1.1
bs4: 4.6.0
html5lib: 1.0.1
sqlalchemy: 1.2.1
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
The text was updated successfully, but these errors were encountered: