-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Sparse DataFrame with all-zeros column returns NA for fancy index #29563
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
Here is an even more minimalistic example: import pandas as pd
s = pd.Series([0])
s = s.astype(pd.SparseDtype("float", fill_value=0))
s[[0]] |
bajacc
added a commit
to bajacc/pandas
that referenced
this issue
Dec 10, 2019
scottgigante
added a commit
to scottgigante/pandas
that referenced
this issue
May 13, 2020
5 tasks
scottgigante
added a commit
to scottgigante/pandas
that referenced
this issue
May 14, 2020
scottgigante
added a commit
to scottgigante/pandas
that referenced
this issue
May 17, 2020
scottgigante
added a commit
to scottgigante/pandas
that referenced
this issue
May 17, 2020
scottgigante
added a commit
to scottgigante/pandas
that referenced
this issue
May 18, 2020
scottgigante
added a commit
to scottgigante/pandas
that referenced
this issue
May 20, 2020
jreback
added a commit
that referenced
this issue
Jun 1, 2020
TomAugspurger
added a commit
to TomAugspurger/pandas
that referenced
this issue
Jul 15, 2020
pandas-dev#29563 (pandas-dev#34158)" This reverts commit a94b13a.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code Sample, a copy-pastable example if possible
Problem description
Executing the above code results in:
Instead of
This could be related to #27781, although the interpretation of the bug is different.
Expected Output
Mentioned above.
Output of
pd.show_versions()
INSTALLED VERSIONS
commit : None
python : 3.7.5.candidate.1
python-bits : 64
OS : Linux
OS-release : 5.3.0-19-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 0.25.3
numpy : 1.17.4
pytz : 2019.3
dateutil : 2.8.1
pip : 19.3.1
setuptools : 41.1.0
Cython : 0.29.14
pytest : None
hypothesis : None
sphinx : 2.2.1
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.4.1
html5lib : 1.0.1
pymysql : None
psycopg2 : 2.8.4 (dt dec pq3 ext lo64)
jinja2 : 2.10.3
IPython : 7.9.0
pandas_datareader: None
bs4 : 4.8.0
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.4.1
matplotlib : 3.1.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : 1.3.2
sqlalchemy : 1.3.11
tables : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
The text was updated successfully, but these errors were encountered: