Skip to content

Commit f56134b

Browse files
committed
CLN: remove impossible "Index is None" case
1 parent 3ee6282 commit f56134b

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
@@ -3238,9 +3238,6 @@ def _try_cast(arr, take_fast_path):
32383238
subarr = _try_cast(data, False)
32393239

32403240
if subarr.ndim == 0 or is_scalar(data):
3241-
if index is None:
3242-
return subarr.item()
3243-
32443241
if subarr.ndim == 1:
32453242
# a scalar upcasted to 1-dimensional by maybe_cast_to_datetime()
32463243
value = subarr[0]

0 commit comments

Comments
 (0)