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/v3.0.0.rst
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -392,9 +392,9 @@ and users can skip the check by explicitly specifying ``sort=True`` or
392
392
``sort=False``.
393
393
394
394
This deprecation can also impact pandas' internal usage of :func:`concat`.
395
-
While we have investigated uses of :func:`concat` to determine if this could lead
396
-
to a change in behavior of other functions and methods in the API, it is
397
-
possible some have been missed. In order to be cautious here, pandas has *not*
395
+
Here cases where :func:`concat` was sorting a :class:`DatetimeIndex` but not
396
+
other indexes are considered bugs and have been fixed as noted below. However
397
+
it is possible some have been missed. In order to be cautious here, pandas has *not*
398
398
added ``sort=False`` to any internal calls where we believe behavior should not change.
399
399
If we have missed something, users will not experience a behavior change but they
400
400
will receive a warning about :func:`concat` even though they are not directly
@@ -431,6 +431,14 @@ we may address any potential behavior changes.
431
431
432
432
pd.concat([df1, df2], axis=1, sort=False)
433
433
434
+
Cases where pandas' internal usage of :func:`concat` resulted in inconsistent sorting
435
+
that are now fixed in this release are as follows.
436
+
437
+
- :meth:`Series.apply` and :meth:`DataFrame.apply` with a list-like or dict-like ``func`` argument.
438
+
- :meth:`Series.shift`, :meth:`DataFrame.shift`, :meth:`.SeriesGroupBy.shift`, :meth:`.DataFrameGroupBy.shift` with the ``periods`` argument a list of length greater than 1.
439
+
- :meth:`DataFrame.join` with ``other`` a list of one or more Series or DataFrames and ``how="inner"``, ``how="left"``, or ``how="right"``.
440
+
- :meth:`Series.str.cat` with ``others`` a Series or DataFrame.
Changed behavior in :meth:`DataFrame.value_counts` and :meth:`DataFrameGroupBy.value_counts` when ``sort=False``
@@ -1243,7 +1251,6 @@ Groupby/resample/rolling
1243
1251
- Bug in :meth:`DataFrameGroupBy.apply` with ``as_index=False`` that was returning :class:`MultiIndex` instead of returning :class:`Index`. (:issue:`58291`)
1244
1252
- Bug in :meth:`DataFrameGroupBy.cumsum` and :meth:`DataFrameGroupBy.cumprod` where ``numeric_only`` parameter was passed indirectly through kwargs instead of passing directly. (:issue:`58811`)
1245
1253
- Bug in :meth:`DataFrameGroupBy.cumsum` where it did not return the correct dtype when the label contained ``None``. (:issue:`58811`)
1246
-
- Bug in :meth:`DataFrameGroupBy.shift` where the resulting index would be sorted if the input is a :class:`DatetimeIndex` and multiple periods are specified (:issue:`62843`)
1247
1254
- Bug in :meth:`DataFrameGroupby.transform` and :meth:`SeriesGroupby.transform` with a reducer and ``observed=False`` that coerces dtype to float when there are unobserved categories. (:issue:`55326`)
1248
1255
- Bug in :meth:`Rolling.apply` for ``method="table"`` where column order was not being respected due to the columns getting sorted by default. (:issue:`59666`)
1249
1256
- Bug in :meth:`Rolling.apply` where the applied function could be called on fewer than ``min_period`` periods if ``method="table"``. (:issue:`58868`)
0 commit comments