Skip to content

Commit

Permalink
PERF: reverted change from commit 7d257c6 to solve issue pandas-dev#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
ukarroum committed Oct 26, 2020
1 parent 8985801 commit 6c7d391
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -8756,12 +8756,7 @@ def _get_data() -> DataFrame:
data = self._get_bool_data()
return data

if numeric_only is not None or (
numeric_only is None
and axis == 0
and not any_object
and not self._mgr.any_extension_types
):
if numeric_only is not None:
# For numeric_only non-None and axis non-None, we know
# which blocks to use and no try/except is needed.
# For numeric_only=None only the case with axis==0 and no object
Expand Down

0 comments on commit 6c7d391

Please sign in to comment.