Skip to content

Commit 481c8a7

Browse files
committed
PERF: reverted change from commit 7d257c6 to solve issue #37081
1 parent c583144 commit 481c8a7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pandas/core/frame.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -8758,12 +8758,7 @@ def _get_data() -> DataFrame:
87588758
data = self._get_bool_data()
87598759
return data
87608760

8761-
if numeric_only is not None or (
8762-
numeric_only is None
8763-
and axis == 0
8764-
and not any_object
8765-
and not self._mgr.any_extension_types
8766-
):
8761+
if numeric_only is not None:
87678762
# For numeric_only non-None and axis non-None, we know
87688763
# which blocks to use and no try/except is needed.
87698764
# For numeric_only=None only the case with axis==0 and no object

0 commit comments

Comments
 (0)