Skip to content

Commit

Permalink
Add sparse reshaping docs section
Browse files Browse the repository at this point in the history
  • Loading branch information
kernc committed Aug 11, 2017
1 parent 331bc5f commit d235492
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions doc/source/sparse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,15 @@ the correct dense result.
np.abs(arr)
np.abs(arr).to_dense()
.. _sparse.reshaping:

Reshaping by stacking and unstacking
------------------------------------

``SparseSeries`` and ``SparseDataFrame`` implement ``.stack()`` and
``.unstack()`` methods that should behave exactly the same as on
:ref:`their non-sparse counterparts <reshaping.stacking>`.

.. _sparse.scipysparse:

Interaction with scipy.sparse
Expand Down
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v0.21.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ Performance Improvements
Bug Fixes
~~~~~~~~~

- Bug in :func:`SparseSeries.unstack` and :func:`SparseDataFrame.stack` (:issue:`16614`, :issue:`15045`)
- Bug in :func:`SparseSeries.unstack` and :func:`SparseDataFrame.stack`. See :ref:`docs <sparse.reshaping>` (:issue:`16614`, :issue:`15045`)

Conversion
^^^^^^^^^^
Expand Down

0 comments on commit d235492

Please sign in to comment.