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

BUG: SparseDataFrame indexing may return normal Series #12787

Closed
wants to merge 1 commit into from

Conversation

sinhrks
Copy link
Member

@sinhrks sinhrks commented Apr 3, 2016

Found a below bug in SparseDataFrame indexing.

# NG, must be SparseSeries
df = pd.DataFrame([[1, 2], [np.nan, 4]]).to_sparse()
type(df.loc[0])  
# pandas.core.series.Series

@sinhrks sinhrks added Bug Indexing Related to indexing on series/frames, not to indexes themselves Sparse Sparse Data Type labels Apr 3, 2016
@sinhrks sinhrks added this to the 0.18.1 milestone Apr 3, 2016
@sinhrks sinhrks force-pushed the sparse_indexing branch 2 times, most recently from 53749ec to 6219902 Compare April 3, 2016 19:34
@sinhrks sinhrks mentioned this pull request Apr 3, 2016
2 tasks
@sinhrks
Copy link
Member Author

sinhrks commented Apr 4, 2016

Rebased, and now green.

@jreback jreback closed this in a3a0942 Apr 4, 2016
@jreback
Copy link
Contributor

jreback commented Apr 4, 2016

thanks!

@sinhrks sinhrks deleted the sparse_indexing branch April 4, 2016 17:58
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 Sparse Sparse Data Type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants