Skip to content

Commit 6d2505b

Browse files
authored
CLN: dont consolidate in NDFrame._is_numeric_mixed_type (#34678)
1 parent 62b26a7 commit 6d2505b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pandas/core/generic.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -5331,15 +5331,10 @@ def _is_mixed_type(self) -> bool_t:
53315331
f = lambda: self._mgr.is_mixed_type
53325332
return self._protect_consolidate(f)
53335333

5334-
@property
5335-
def _is_numeric_mixed_type(self) -> bool_t:
5336-
f = lambda: self._mgr.is_numeric_mixed_type
5337-
return self._protect_consolidate(f)
5338-
53395334
def _check_inplace_setting(self, value) -> bool_t:
53405335
""" check whether we allow in-place setting with this type of value """
53415336
if self._is_mixed_type:
5342-
if not self._is_numeric_mixed_type:
5337+
if not self._mgr.is_numeric_mixed_type:
53435338

53445339
# allow an actual np.nan thru
53455340
if is_float(value) and np.isnan(value):

0 commit comments

Comments
 (0)