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

API: SparseSeries comparison now returns sparse #13999

Closed
wants to merge 1 commit into from

Conversation

sinhrks
Copy link
Member

@sinhrks sinhrks commented Aug 14, 2016

  • tests added / passed
  • passes git diff upstream/master | flake8 --diff
  • whatsnew entry

Because #13985 has been fixed, SparseSeries comparison op now can return SparseSeries (it returns normal Series on current master).

also fixed a bug when SparseArray created from SparseSeries may not inherit dtype.

@sinhrks sinhrks added API Design Sparse Sparse Data Type labels Aug 14, 2016
@sinhrks sinhrks added this to the 0.19.0 milestone Aug 14, 2016
@codecov-io
Copy link

codecov-io commented Aug 14, 2016

Current coverage is 85.25% (diff: 100%)

Merging #13999 into master will decrease coverage by <.01%

@@             master     #13999   diff @@
==========================================
  Files           139        139          
  Lines         50380      50384     +4   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits          42953      42955     +2   
- Misses         7427       7429     +2   
  Partials          0          0          

Powered by Codecov. Last update 453bc26...eafc94c

@@ -762,6 +762,8 @@ Note that the limitation is applied to ``fill_value`` which default is ``np.nan`
ValueError: unable to coerce current fill_value nan to int64 dtype

- Subclassed ``SparseDataFrame`` and ``SparseSeries`` now preserve class types when slicing or transposing. (:issue:`13787`)
- ``SparseSeries`` comparison now changed to return ``SparseSeries`` (:issue:`13999`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you give a mini-example for this one

# GH 13999
for kind in ['integer', 'block']:
for fill in [1, np.nan, 0]:
arr = SparseArray([np.nan, 1, np.nan, 2, 3])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these supposed to use kind/fill?

@jreback
Copy link
Contributor

jreback commented Aug 20, 2016

thanks!

@jreback jreback closed this in 51b20de Aug 20, 2016
@sinhrks sinhrks deleted the sparse_comparison branch August 20, 2016 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Design Sparse Sparse Data Type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants