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
@@ -390,9 +390,9 @@ and users can skip the check by explicitly specifying ``sort=True`` or
390
390
``sort=False``.
391
391
392
392
This deprecation can also impact pandas' internal usage of :func:`concat`.
393
-
While we have investigated uses of :func:`concat` to determine if this could lead
394
-
to a change in behavior of other functions and methods in the API, it is
395
-
possible some have been missed. In order to be cautious here, pandas has *not*
393
+
Here cases where :func:`concat` was sorting a :class:`DatetimeIndex` but not
394
+
other indexes are considered bugs and have been fixed as noted below. However
395
+
it is possible some have been missed. In order to be cautious here, pandas has *not*
396
396
added ``sort=False`` to any internal calls where we believe behavior should not change.
397
397
If we have missed something, users will not experience a behavior change but they
398
398
will receive a warning about :func:`concat` even though they are not directly
@@ -429,6 +429,14 @@ we may address any potential behavior changes.
429
429
430
430
pd.concat([df1, df2], axis=1, sort=False)
431
431
432
+
Cases where pandas' internal usage of :func:`concat` resulted in inconsistent sorting
433
+
that are now fixed in this release are as follows.
434
+
435
+
- :meth:`Series.apply` and :meth:`DataFrame.apply` with a list-like or dict-like ``func`` argument.
436
+
- :meth:`Series.shift`, :meth:`DataFrame.shift`, :meth:`.SeriesGroupBy.shift`, :meth:`.DataFrameGroupBy.shift` with the ``periods`` argument a list of length greater than 1.
437
+
- :meth:`DataFrame.join` with ``other`` a list of one or more Series or DataFrames and ``how="inner"``, ``how="left"``, or ``how="right"``.
438
+
- :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``
@@ -1233,7 +1241,6 @@ Groupby/resample/rolling
1233
1241
- Bug in :meth:`DataFrameGroupBy.apply` with ``as_index=False`` that was returning :class:`MultiIndex` instead of returning :class:`Index`. (:issue:`58291`)
1234
1242
- Bug in :meth:`DataFrameGroupBy.cumsum` and :meth:`DataFrameGroupBy.cumprod` where ``numeric_only`` parameter was passed indirectly through kwargs instead of passing directly. (:issue:`58811`)
1235
1243
- Bug in :meth:`DataFrameGroupBy.cumsum` where it did not return the correct dtype when the label contained ``None``. (:issue:`58811`)
1236
-
- 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`)
1237
1244
- 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`)
1238
1245
- 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`)
1239
1246
- 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