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
Concatenating two sparse series does not return sparse data structures as expected:
In [1]: import pandas as pd In [2]: ts = pd.Series([0, 1, 1, 2, 3, 0 ,0 ,0]) In [3]: sts = ts.to_sparse() In [4]: print type(pd.concat([sts, sts], axis=0)) <class 'pandas.core.series.Series'> In [5]: print type(pd.concat([sts, sts], axis=1)) <class 'pandas.core.frame.DataFrame'>
The above does work correctly for SparseDataFrames.
The text was updated successfully, but these errors were encountered:
xref #10531
Sorry, something went wrong.
26782a9
Successfully merging a pull request may close this issue.
Concatenating two sparse series does not return sparse data structures as expected:
The above does work correctly for SparseDataFrames.
The text was updated successfully, but these errors were encountered: