polars.Series.set_at_idx#
- Series.set_at_idx(
 - indices: Series | ndarray[Any, Any] | Sequence[int] | int,
 - values: int | float | str | bool | date | datetime | Sequence[int] | Sequence[float] | Sequence[bool] | Sequence[str] | Sequence[date] | Sequence[datetime] | Series | None,
 Set values at the index locations.
Deprecated since version 0.19.14: This method has been renamed to
scatter().- Parameters:
 - indices
 Integers representing the index locations.
- values
 Replacement values.