Skip to content

Commit 707abf2

Browse files
committed
CLN: remove impossible "Index is None" case
1 parent 8aae8fb commit 707abf2

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

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

0 commit comments

Comments
 (0)