pd.Series.iloc
¶
pandas.Series.iloc
-
getitem:
Series.iloc
supports single integer indexing (returns a scalar)S.iloc[0]
Series.iloc
supports list/array/series of integers/bool (returns a Series)S.iloc[[0,1,2]]
Series.iloc
supports integer slice (returns a Series)S.iloc[[0:2]]
-
setitem:
- Supports the same cases as getitem but the array type must be mutable (i.e. numeric array)