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.txt
+19-6
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ Pandas has gained the ability to hold integer dtypes with missing values. This l
42
42
Here is an example of the usage.
43
43
44
44
We can construct a ``Series`` with the specified dtype. The dtype string ``Int64`` is a pandas ``ExtensionDtype``. Specifying a list or array using the traditional missing value
45
-
marker of ``np.nan`` will infer to integer dtype. The display of the ``Series`` will also use the ``NaN`` to indicate missing values in string outputs. (:issue:`20700`, :issue:`20747`)
45
+
marker of ``np.nan`` will infer to integer dtype. The display of the ``Series`` will also use the ``NaN`` to indicate missing values in string outputs. (:issue:`20700`, :issue:`20747`, :issue:`22441`)
46
46
47
47
.. ipython:: python
48
48
@@ -182,6 +182,8 @@ Other Enhancements
182
182
- :func:`to_timedelta` now supports iso-formated timedelta strings (:issue:`21877`)
183
183
- :class:`Series` and :class:`DataFrame` now support :class:`Iterable` in constructor (:issue:`2193`)
184
184
- :class:`DatetimeIndex` gained :attr:`DatetimeIndex.timetz` attribute. Returns local time with timezone information. (:issue:`21358`)
185
+
- :class:`Resampler` now is iterable like :class:`GroupBy` (:issue:`15314`).
186
+
- :ref:`Series.resample` and :ref:`DataFrame.resample` have gained the :meth:`Resampler.quantile` (:issue:`15023`).
185
187
186
188
.. _whatsnew_0240.api_breaking:
187
189
@@ -442,11 +444,13 @@ ExtensionType Changes
442
444
- ``ExtensionArray`` has gained the abstract methods ``.dropna()`` (:issue:`21185`)
443
445
- ``ExtensionDtype`` has gained the ability to instantiate from string dtypes, e.g. ``decimal`` would instantiate a registered ``DecimalDtype``; furthermore
444
446
the ``ExtensionDtype`` has gained the method ``construct_array_type`` (:issue:`21185`)
447
+
- Added ``ExtensionDtype._is_numeric`` for controlling whether an extension dtype is considered numeric (:issue:`22290`).
445
448
- The ``ExtensionArray`` constructor, ``_from_sequence`` now take the keyword arg ``copy=False`` (:issue:`21185`)
446
449
- Bug in :meth:`Series.get` for ``Series`` using ``ExtensionArray`` and integer index (:issue:`21257`)
450
+
- :meth:`~Series.shift` now dispatches to :meth:`ExtensionArray.shift` (:issue:`22386`)
447
451
- :meth:`Series.combine()` works correctly with :class:`~pandas.api.extensions.ExtensionArray` inside of :class:`Series` (:issue:`20825`)
448
452
- :meth:`Series.combine()` with scalar argument now works for any function type (:issue:`21248`)
449
-
-
453
+
- :meth:`Series.astype` and :meth:`DataFrame.astype` now dispatch to :meth:`ExtensionArray.astype` (:issue:`21185:`).
450
454
451
455
.. _whatsnew_0240.api.incompatibilities:
452
456
@@ -517,8 +521,10 @@ Removal of prior version deprecations/changes
517
521
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
518
522
519
523
- The ``LongPanel`` and ``WidePanel`` classes have been removed (:issue:`10892`)
524
+
- :meth:`Series.repeat` has renamed the ``reps`` argument to ``repeats`` (:issue:`14645`)
520
525
- Several private functions were removed from the (non-public) module ``pandas.core.common`` (:issue:`22001`)
521
526
- Removal of the previously deprecated module ``pandas.core.datetools`` (:issue:`14105`, :issue:`14094`)
527
+
- Strings passed into :meth:`DataFrame.groupby` that refer to both column and index levels will raise a ``ValueError`` (:issue:`14432`)
522
528
-
523
529
524
530
.. _whatsnew_0240.performance:
@@ -576,13 +582,17 @@ Datetimelike
576
582
- Bug in :class:`DataFrame` comparisons against ``Timestamp``-like objects failing to raise ``TypeError`` for inequality checks with mismatched types (:issue:`8932`,:issue:`22163`)
577
583
- Bug in :class:`DataFrame` with mixed dtypes including ``datetime64[ns]`` incorrectly raising ``TypeError`` on equality comparisons (:issue:`13128`,:issue:`22163`)
578
584
- Bug in :meth:`DataFrame.eq` comparison against ``NaT`` incorrectly returning ``True`` or ``NaN`` (:issue:`15697`,:issue:`22163`)
579
-
- Bug in :class:`DataFrame` with ``timedelta64[ns]`` dtype division by ``Timedelta``-like scalar incorrectly returning ``timedelta64[ns]`` dtype instead of ``float64`` dtype (:issue:`20088`,:issue:`22163`)
580
-
-
581
585
582
586
Timedelta
583
587
^^^^^^^^^
584
588
585
589
- Fixed bug where subtracting :class:`Timedelta` from an object-dtyped array would raise ``TypeError`` (:issue:`21980`)
590
+
- Bug in :class:`DataFrame` with ``timedelta64[ns]`` dtype division by ``Timedelta``-like scalar incorrectly returning ``timedelta64[ns]`` dtype instead of ``float64`` dtype (:issue:`20088`,:issue:`22163`)
591
+
- Bug in adding a :class:`Index` with object dtype to a :class:`Series` with ``timedelta64[ns]`` dtype incorrectly raising (:issue:`22390`)
592
+
- Bug in multiplying a :class:`Series` with numeric dtype against a ``timedelta`` object (:issue:`22390`)
593
+
- Bug in :class:`Series` with numeric dtype when adding or subtracting an an array or ``Series`` with ``timedelta64`` dtype (:issue:`22390`)
594
+
- Bug in :class:`Index` with numeric dtype when multiplying or dividing an array with dtype ``timedelta64`` (:issue:`22390`)
595
+
-
586
596
-
587
597
-
588
598
@@ -626,6 +636,7 @@ Numeric
626
636
a ``TypeError`` was wrongly raised. For all three methods such calculation are now done correctly. (:issue:`16679`).
627
637
- Bug in :class:`Series` comparison against datetime-like scalars and arrays (:issue:`22074`)
628
638
- Bug in :class:`DataFrame` multiplication between boolean dtype and integer returning ``object`` dtype instead of integer dtype (:issue:`22047`,:issue:`22163`)
639
+
- Bug in :meth:`DataFrame.apply` where, when supplied with a string argument and additional positional or keyword arguments (e.g. ``df.apply('sum', min_count=1)``), a ``TypeError`` was wrongly raised (:issue:`22376`)
629
640
-
630
641
631
642
Strings
@@ -654,6 +665,7 @@ Indexing
654
665
- Fixed ``DataFrame[np.nan]`` when columns are non-unique (:issue:`21428`)
655
666
- Bug when indexing :class:`DatetimeIndex` with nanosecond resolution dates and timezones (:issue:`11679`)
656
667
- Bug where indexing with a Numpy array containing negative values would mutate the indexer (:issue:`21867`)
668
+
- ``Float64Index.get_loc`` now raises ``KeyError`` when boolean key passed. (:issue:`19087`)
657
669
658
670
Missing
659
671
^^^^^^^
@@ -674,6 +686,7 @@ I/O
674
686
675
687
- :func:`read_html()` no longer ignores all-whitespace ``<tr>`` within ``<thead>`` when considering the ``skiprows`` and ``header`` arguments. Previously, users had to decrease their ``header`` and ``skiprows`` values on such tables to work around the issue. (:issue:`21641`)
676
688
- :func:`read_excel()` will correctly show the deprecation warning for previously deprecated ``sheetname`` (:issue:`17994`)
689
+
- :func:`read_csv()` will correctly parse timezone-aware datetimes (:issue:`22256`)
677
690
-
678
691
679
692
Plotting
@@ -691,7 +704,7 @@ Groupby/Resample/Rolling
691
704
``SeriesGroupBy`` when the grouping variable only contains NaNs and numpy version < 1.13 (:issue:`21956`).
692
705
- Multiple bugs in :func:`pandas.core.Rolling.min` with ``closed='left'` and a
693
706
datetime-like index leading to incorrect results and also segfault. (:issue:`21704`)
694
-
-
707
+
- Bug in :meth:`Resampler.apply` when passing postiional arguments to applied func (:issue:`14615`).
695
708
696
709
Sparse
697
710
^^^^^^
@@ -712,7 +725,7 @@ Reshaping
712
725
- Bug in :func:`get_dummies` with Unicode attributes in Python 2 (:issue:`22084`)
713
726
- Bug in :meth:`DataFrame.replace` raises ``RecursionError`` when replacing empty lists (:issue:`22083`)
714
727
- Bug in :meth:`Series.replace` and meth:`DataFrame.replace` when dict is used as the `to_replace` value and one key in the dict is is another key's value, the results were inconsistent between using integer key and using string key (:issue:`20656`)
715
-
-
728
+
- Bug in :meth:`DataFrame.drop_duplicates` for empty ``DataFrame`` which incorrectly raises an error (:issue:`20516`)
0 commit comments