You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree, should default to return na, as you are viewing the Series effectiviely like a Frame here
also note that this is another case of the above (just slightly different exception)
In [6]: s = pd.Series(["foo","b","bar"])
In [7]: s
Out[7]:
0 foo
1 b
2 bar
In [8]: s.str[0]
Out[8]:
0 f
1 b
2 b
In [9]: s.str[1]
IndexError: string index out of range
No description provided.
The text was updated successfully, but these errors were encountered: