Skip to content

Commit 6c7d391

Browse files
committed
PERF: reverted change from commit 7d257c6 to solve issue pandas-dev#37081
1 parent 8985801 commit 6c7d391

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
@@ -8756,12 +8756,7 @@ def _get_data() -> DataFrame:
87568756
data = self._get_bool_data()
87578757
return data
87588758

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

0 commit comments

Comments
 (0)