You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.24.0.rst
+3-1
Original file line number
Diff line number
Diff line change
@@ -647,7 +647,7 @@ changes were made:
647
647
* The ``out`` and ``mode`` parameters are now longer accepted (previously, this raised if they were specified).
648
648
* Passing a scalar for ``indices`` is no longer allowed.
649
649
650
-
- The result of concatenating a mix of sparse and dense Series is a Series with sparse values, rather than a ``SparseSeries``.
650
+
- The result of :func:`concat` with a mix of sparse and dense Series is a Series with sparse values, rather than a ``SparseSeries``.
651
651
- ``SparseDataFrame.combine`` and ``DataFrame.combine_first`` no longer supports combining a sparse column with a dense column while preserving the sparse subtype. The result will be an object-dtype SparseArray.
652
652
- Setting :attr:`SparseArray.fill_value` to a fill value with a different dtype is now allowed.
653
653
- ``DataFrame[column]`` is now a :class:`Series` with sparse values, rather than a :class:`SparseSeries`, when slicing a single column with sparse values (:issue:`23559`).
@@ -1104,6 +1104,7 @@ Other API Changes
1104
1104
- The order of the arguments of :func:`DataFrame.to_html` and :func:`DataFrame.to_string` is rearranged to be consistent with each other. (:issue:`23614`)
1105
1105
- :meth:`CategoricalIndex.reindex` now raises a ``ValueError`` if the target index is non-unique and not equal to the current index. It previously only raised if the target index was not of a categorical dtype (:issue:`23963`).
1106
1106
- :func:`Series.to_list` and :func:`Index.to_list` are now aliases of ``Series.tolist`` respectively ``Index.tolist`` (:issue:`8826`)
1107
+
- The result of ``SparseSeries.unstack`` is now a :class:`DataFrame` with sparse values, rather than a :class:`SparseDataFrame` (issue:`24372`).
1107
1108
1108
1109
.. _whatsnew_0240.deprecations:
1109
1110
@@ -1616,6 +1617,7 @@ Sparse
1616
1617
- Bug in :meth:`SparseArary.unique` not returning the unique values (:issue:`19595`)
1617
1618
- Bug in :meth:`SparseArray.nonzero` and :meth:`SparseDataFrame.dropna` returning shifted/incorrect results (:issue:`21172`)
1618
1619
- Bug in :meth:`DataFrame.apply` where dtypes would lose sparseness (:issue:`23744`)
1620
+
- Bug in :func:`concat` when concatenating a list of :class:`Series` with all-sparse values changing the ``fill_value`` and converting to a dense Series (:issue:`24371`)
0 commit comments