Skip to content

Commit

Permalink
exclude ABCMultiIndex; move changelog to 2.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie-XIAO committed Oct 27, 2023
1 parent 6f250ab commit 8980786
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v2.1.3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Fixed regressions

Bug fixes
~~~~~~~~~
-
- Bug in :class:`Series` constructor raising DeprecationWarning when ``index`` is a list of :class:`Series` (:issue:`55228`)
-

.. ---------------------------------------------------------------------------
Expand Down
1 change: 0 additions & 1 deletion doc/source/whatsnew/v2.2.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,6 @@ Styler

Other
^^^^^
- Bug in :class:`Series` constructor raising DeprecationWarning when ``index`` is a list of :class:`Series` (:issue:`55228`)
- Bug in :func:`cut` incorrectly allowing cutting of timezone-aware datetimes with timezone-naive bins (:issue:`54964`)
- Bug in :func:`infer_freq` and :meth:`DatetimeIndex.inferred_freq` with weekly frequencies and non-nanosecond resolutions (:issue:`55609`)
- Bug in :meth:`DataFrame.apply` where passing ``raw=True`` ignored ``args`` passed to the applied function (:issue:`55009`)
Expand Down
5 changes: 3 additions & 2 deletions pandas/_libs/lib.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -865,13 +865,14 @@ def is_all_arraylike(obj: list) -> bool:

from pandas.core.dtypes.generic import (
ABCIndex,
ABCMultiIndex,
ABCSeries,
)

for i in range(n):
val = obj[i]
if not (isinstance(val, (list, ABCSeries, ABCIndex))
or util.is_array(val)):
if (not (isinstance(val, (list, ABCSeries, ABCIndex)) or util.is_array(val))
or isinstance(val, ABCMultiIndex)):
# TODO: EA?
# exclude tuples, frozensets as they may be contained in an Index
all_arrays = False
Expand Down

0 comments on commit 8980786

Please sign in to comment.