-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
KeyError when calling to_coo() on SparseDataFrame #18414
Comments
Same issue exists with Pandas 0.22.0 and Python 3.6.4. |
Exists with Pandas 0.23.3 and Python 3.6.6 INSTALLED VERSIONScommit: None pandas: 0.23.3 |
We should be using positional indexing here (so |
Still applies to DataFrame[sparse]. Updated the original post. |
take |
Code Sample, a copy-pastable example if possible
Problem description
Currently, a
KeyError
is raised while trying to get the first column type (cast.py#1070).Expected Output
A (very) sparse matrix
Output of
pd.show_versions()
pandas: 0.21.0
pytest: None
pip: 10.0.0.subpip_fix
setuptools: 36.5.0
Cython: None
numpy: 1.13.3
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.1.0
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: 4.1.0
bs4: 4.6.0
html5lib: 1.0b10
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.9.6
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: 0.5.0
The text was updated successfully, but these errors were encountered: