Skip to content

Commit 1228167

Browse files
committed
PERF: reverted change from commit 7d257c6 to solve issue #37081
1 parent c45da41 commit 1228167

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
@@ -8777,12 +8777,7 @@ def _get_data() -> DataFrame:
87778777
data = self._get_bool_data()
87788778
return data
87798779

8780-
if numeric_only is not None or (
8781-
numeric_only is None
8782-
and axis == 0
8783-
and not any_object
8784-
and not self._mgr.any_extension_types
8785-
):
8780+
if numeric_only is not None:
87868781
# For numeric_only non-None and axis non-None, we know
87878782
# which blocks to use and no try/except is needed.
87888783
# For numeric_only=None only the case with axis==0 and no object

0 commit comments

Comments
 (0)