-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Boolean indexing and assignment from python list broken #19406
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
This works now as intended. May need some tests |
Can confirm it's working with pandas 1.1.3 |
take |
I'm trying to decide where to put this test. I'm looking at |
That would be better suited in the boolean group. Isnull is here just a tool to create a boolean mask. Could you maybe search for related tests? Maybe in series/indexing/test_setitem? |
I just realized this while I was typing out the test. 😅 Will do and thanks for the guidance! |
There is a problem with assigning lists to indexed Series
s1
shows the correct result, whereass2
is obviously wrong. In pandas0.19.2
the result is correct, but in0.21.0
and0.23.0.dev0+97.g24c07b075
I get the above behavior. It can be fixed if a numpy array instead of a python list is assigned.There probably should be a test case to catch that...
Output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.5.4.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: en_US
LOCALE: None.None
pandas: 0.23.0.dev0+97.g24c07b075
pytest: 3.2.3
pip: 9.0.1
setuptools: 38.2.4
Cython: 0.27.3
numpy: 1.14.0
scipy: 1.0.0
pyarrow: None
xarray: None
IPython: 6.2.1
sphinx: None
patsy: None
dateutil: 2.6.1
pytz: 2017.3
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 2.0.0
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.6.0
html5lib: 0.9999999
sqlalchemy: 1.1.13
pymysql: 0.7.11.None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: