Skip to content
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

Cannot slice a SparseDataFrame's columns. #1585

Closed
mcobzarenco opened this issue Jul 8, 2012 · 0 comments
Closed

Cannot slice a SparseDataFrame's columns. #1585

mcobzarenco opened this issue Jul 8, 2012 · 0 comments
Assignees
Labels
Bug Indexing Related to indexing on series/frames, not to indexes themselves
Milestone

Comments

@mcobzarenco
Copy link

Example:

sdf = pandas.SparseDataFrame(index=[0, 1, 2], columns=['a', 'b','c'])

sdf[['a', 'b']]

/usr/lib64/python2.7/site-packages/pandas/sparse/frame.pyc in __getitem__(self, item)
    321         try:
    322             # unsure about how kludgy this is
--> 323             s = self._series[item]
    324             s.name = item
    325             return s

TypeError: unhashable type: 'list'
@ghost ghost assigned wesm Jul 11, 2012
@wesm wesm closed this as completed in 060ae8f Jul 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

No branches or pull requests

2 participants