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

mcobzarenco opened this Issue Jul 8, 2012 · 0 comments


None yet
2 participants

mcobzarenco commented Jul 8, 2012


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    = item
    325             return s

TypeError: unhashable type: 'list'

@ghost ghost assigned wesm Jul 11, 2012

@wesm wesm closed this in 060ae8f Jul 11, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment