Skip to content

Commit bb1f924

Browse files
Revert "Check instead of try/except (pandas-dev#29587)"
This reverts commit db4095e.
1 parent 71b7868 commit bb1f924

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,9 +602,9 @@ def _aggregate_multiple_funcs(self, arg, _level, _axis):
602602
if not len(results):
603603
raise ValueError("no results")
604604

605-
if all(np.ndim(x) > 0 for x in results):
605+
try:
606606
return concat(results, keys=keys, axis=1, sort=False)
607-
else:
607+
except TypeError:
608608

609609
# we are concatting non-NDFrame objects,
610610
# e.g. a list of scalars

0 commit comments

Comments
 (0)