-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Remove SparseSeries and SparseDataFrame #28425
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
Changes from 27 commits
acf5f2f
5418dd5
f61b5e3
238db69
7448795
f285272
b6fb1aa
c476b21
fc34fe8
3cc4765
766a2f2
dd51140
129e89e
5b711c6
075bfd2
2b58e53
413347f
d5828e3
047773e
2d8d195
fa508c1
9b61370
0c530ae
5d55a49
58b848a
7a7e2d3
f1afc8f
7742e36
008931a
04bf466
a4a21ae
a8b0d65
77b7da3
d265ba9
c2a9514
0c02b2a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,8 +91,7 @@ Interaction with scipy.sparse | |
|
||
Added :meth:`SparseSeries.to_coo` and :meth:`SparseSeries.from_coo` methods (:issue:`8048`) for converting to and from ``scipy.sparse.coo_matrix`` instances (see :ref:`here <sparse.scipysparse>`). For example, given a SparseSeries with MultiIndex we can convert to a `scipy.sparse.coo_matrix` by specifying the row and column labels as index levels: | ||
|
||
.. ipython:: python | ||
:okwarning: | ||
.. code-block:: python | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could be done as a follow up and probably something easy for the community to contribute to, but ideally since we are converting these from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Certainly wouldn't object, but I think that's fairly low-value since, e.g. the 0.16 version of the docs at https://pandas.pydata.org/pandas-docs/version/0.16.0/whatsnew.html will have the correct rendering. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yea I don’t think you should do here as there’s already enough - just a nice to have a first time contributor could pick up. I can open an issue for it later |
||
|
||
s = pd.Series([3.0, np.nan, 1.0, 3.0, np.nan, np.nan]) | ||
s.index = pd.MultiIndex.from_tuples([(1, 2, 'a', 0), | ||
|
@@ -121,8 +120,7 @@ Added :meth:`SparseSeries.to_coo` and :meth:`SparseSeries.from_coo` methods (:is | |
The from_coo method is a convenience method for creating a ``SparseSeries`` | ||
from a ``scipy.sparse.coo_matrix``: | ||
|
||
.. ipython:: python | ||
:okwarning: | ||
.. code-block:: python | ||
|
||
from scipy import sparse | ||
A = sparse.coo_matrix(([3.0, 1.0, 2.0], ([1, 0, 0], [0, 2, 3])), | ||
|
Uh oh!
There was an error while loading. Please reload this page.