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
base: master
from

Conversation

Projects
None yet
2 participants
@sinhrks
Member

sinhrks commented Apr 3, 2016

  • related to #4400 (not close yet)
  • tests added / passed
  • passes git diff upstream/master | flake8 --diff
  • whatsnew entry

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 this to the 0.18.1 milestone Apr 3, 2016

@sinhrks sinhrks referenced this pull request Apr 3, 2016

Closed

TST: Make sparse test more strict #12789

2 of 2 tasks complete
@sinhrks

This comment has been minimized.

Show comment
Hide comment
@sinhrks

sinhrks Apr 4, 2016

Member

Rebased, and now green.

Member

sinhrks commented Apr 4, 2016

Rebased, and now green.

@jreback jreback closed this in a3a0942 Apr 4, 2016

@jreback

This comment has been minimized.

Show comment
Hide comment
@jreback

jreback Apr 4, 2016

Contributor

thanks!

Contributor

jreback commented Apr 4, 2016

thanks!

@sinhrks sinhrks deleted the sinhrks:sparse_indexing branch Apr 4, 2016

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