We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Two (somewhat related) issues:
>>> pd.Series({1: 1}) 1 1 dtype: int64 >>> pd.SparseSeries({1: 1}) --------------------------------------------------------------------------- AttributeError: 'dict' object has no attribute 'index'
>>> pd.Series({1: 1}, index=[0, 1, 2]) 0 NaN 1 1.0 2 NaN dtype: float64 >>> pd.SparseSeries({1: 1.}, index=[0, 1, 2]) 0 1.0 1 2 dtype: float64 BlockIndex Block locations: array([0], dtype=int32) Block lengths: array([1], dtype=int32)
SparseSeries initialization from dict acts too differently from Series'.
>>> pd.SparseSeries({1: 1}) 1 1.0 dtype: float64 BlockIndex Block locations: array([0], dtype=int32) Block lengths: array([1], dtype=int32) >>> pd.SparseSeries({1: 1.}, index=[0, 1, 2]) 0 NaN 1 1.0 2 NaN dtype: float64 BlockIndex Block locations: array([1], dtype=int32) Block lengths: array([1], dtype=int32)
pd.show_versions()
The text was updated successfully, but these errors were encountered:
yep looks like a bug
Sorry, something went wrong.
I think I have a fix for this. I'm testing it now.
Successfully merging a pull request may close this issue.
Code Sample, a copy-pastable example if possible
Two (somewhat related) issues:
Problem description
SparseSeries initialization from dict acts too differently from Series'.
Expected Output
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: