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
BUG: multi-type SparseDataFrame fixes and improvements
Author: Sašo Stanovnik <sstanovnik@gmail.com>
Closes#13917 from sstanovnik/fix-multitype-series-slice and squashes the following commits:
8c7d1ea [Sašo Stanovnik] Colon to comma.
057d56b [Sašo Stanovnik] Wording and code organization fixes.
926ca1e [Sašo Stanovnik] Fix a derp.
442b8c1 [Sašo Stanovnik] Whatsnew, issue tag, test reordering.
8d675ad [Sašo Stanovnik] Add tests for common dtypes, raises check for pandas ones.
eebcb23 [Sašo Stanovnik] Moved multitype tests to sparse/tests/test_multitype.py
ac790d7 [Sašo Stanovnik] Modify .values docs to process issue #10364.
2104948 [Sašo Stanovnik] Factor the common type discovery to an internal function.
6782bc7 [Sašo Stanovnik] Revert default argument change.
93d2de6 [Sašo Stanovnik] Modified the whatsnew message.
33973a5 [Sašo Stanovnik] Additional multitype tests.
114217e [Sašo Stanovnik] Infer dtype instead of forcing float in SparseArray.
c7fb0f2 [Sašo Stanovnik] Use numpy to determine common dtypes.
fb6237c [Sašo Stanovnik] Add a whatsnew note.
2e833fa [Sašo Stanovnik] BUG: multi-type sparse slicing fixes and improvements
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.19.0.txt
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -437,6 +437,7 @@ API changes
437
437
- ``pd.Timedelta(None)`` is now accepted and will return ``NaT``, mirroring ``pd.Timestamp`` (:issue:`13687`)
438
438
- ``Timestamp``, ``Period``, ``DatetimeIndex``, ``PeriodIndex`` and ``.dt`` accessor have gained a ``.is_leap_year`` property to check whether the date belongs to a leap year. (:issue:`13727`)
439
439
- ``pd.read_hdf`` will now raise a ``ValueError`` instead of ``KeyError``, if a mode other than ``r``, ``r+`` and ``a`` is supplied. (:issue:`13623`)
440
+
- ``DataFrame.values`` will now return ``float64`` with a ``DataFrame`` of mixed ``int64`` and ``uint64`` dtypes, conforming to ``np.find_common_type`` (:issue:`10364`, :issue:`13917`)
440
441
441
442
442
443
@@ -764,6 +765,7 @@ Note that the limitation is applied to ``fill_value`` which default is ``np.nan`
764
765
- Bug in ``SparseDataFrame`` doesn't respect passed ``SparseArray`` or ``SparseSeries`` 's dtype and ``fill_value`` (:issue:`13866`)
765
766
- Bug in ``SparseArray`` and ``SparseSeries`` don't apply ufunc to ``fill_value`` (:issue:`13853`)
766
767
- Bug in ``SparseSeries.abs`` incorrectly keeps negative ``fill_value`` (:issue:`13853`)
768
+
- Bug in single row slicing on multi-type ``SparseDataFrame``s, types were previously forced to float (:issue:`13917`)
0 commit comments