Skip to content

Commit e7e9a48

Browse files
committed
removed unneeded code
1 parent bfa18fb commit e7e9a48

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pandas/core/dtypes/cast.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -758,10 +758,6 @@ def infer_dtype_from_array(arr, pandas_dtype: bool = False) -> Tuple[DtypeObj, A
758758
if pandas_dtype and is_extension_array_dtype(arr):
759759
return arr.dtype, arr
760760

761-
dtype, _ = infer_dtype_from_scalar(arr[0], pandas_dtype=True)
762-
if is_extension_array_dtype(dtype):
763-
return dtype, arr
764-
765761
elif isinstance(arr, ABCSeries):
766762
return arr.dtype, np.asarray(arr)
767763

0 commit comments

Comments
 (0)