Skip to content

Commit 9458f3e

Browse files
committed
restored to og
1 parent 1d04d6f commit 9458f3e

File tree

2 files changed

+2343
-1872
lines changed

2 files changed

+2343
-1872
lines changed

pandas/core/internals/managers.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -2170,10 +2170,8 @@ def setitem_inplace(self, indexer, value) -> None:
21702170
# Note: checking for ndarray instead of np.dtype means we exclude
21712171
# dt64/td64, which do their own validation.
21722172
value = np_can_hold_element(arr.dtype, value)
2173-
2174-
# check if the dtype of the block is object
2175-
implicit_convert = arr.dtype != 'object'
2176-
if isinstance(value, np.ndarray) and value.ndim == 1 and len(value) == 1 and implicit_convert:
2173+
2174+
if isinstance(value, np.ndarray) and value.ndim == 1 and len(value) == 1:
21772175
# NumPy 1.25 deprecation: https://github.com/numpy/numpy/pull/10615
21782176
value = value[0, ...]
21792177

0 commit comments

Comments
 (0)