Skip to content

Commit 14f0443

Browse files
committed
CLN: remove impossible "Index is None" case
1 parent c6aa204 commit 14f0443

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pandas/core/series.py

-3
Original file line numberDiff line numberDiff line change
@@ -4111,9 +4111,6 @@ def _try_cast(arr, take_fast_path):
41114111
subarr = _try_cast(data, False)
41124112

41134113
if subarr.ndim == 0 or is_scalar(data):
4114-
if index is None:
4115-
return subarr.item()
4116-
41174114
if subarr.ndim == 1:
41184115
# a scalar upcasted to 1-dimensional by maybe_cast_to_datetime()
41194116
value = subarr[0]

0 commit comments

Comments
 (0)