pd.Series.iloc¶
pandas.Series.iloc
-
getitem:
Series.ilocsupports single integer indexing (returns a scalar)S.iloc[0]Series.ilocsupports list/array/series of integers/bool (returns a Series)S.iloc[[0,1,2]]Series.ilocsupports 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)