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: inconsistent constructors for sparse and dense objects #9272

Closed
wholmgren opened this issue Jan 16, 2015 · 2 comments
Closed

BUG: inconsistent constructors for sparse and dense objects #9272

wholmgren opened this issue Jan 16, 2015 · 2 comments
Labels
API Design Sparse Sparse Data Type
Milestone

Comments

@wholmgren
Copy link
Contributor

Continuing on my recent sparse kick...

I appreciate the fact that Series(), DataFrame(), and Panel() all return empty versions of themselves. I think it's reasonable to expect that their sparse counterparts would behave the same way, but this is only the case for SparseDataFrame() (it's even tested).

pd.SparseSeries()
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-375-46c1881ac0a7> in <module>()
----> 1 pd.SparseSeries()

TypeError: __init__() missing 1 required positional argument: 'data'

and similar for SparsePanel().

I can submit a PR to change this behavior.

@jreback jreback added Sparse Sparse Data Type API Design labels Jan 16, 2015
@jreback jreback added this to the 0.16.0 milestone Jan 16, 2015
@jreback
Copy link
Contributor

jreback commented Jan 16, 2015

sure

@jreback
Copy link
Contributor

jreback commented Jan 29, 2015

closed by #9277

@jreback jreback closed this as completed Jan 29, 2015
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 a pull request may close this issue.

2 participants