polars.DataFrame.insert_at_idx

DataFrame.insert_at_idx(index: int, series: polars.internals.series.Series) None

Insert a Series at a certain column index. This operation is in place.

Parameters
index

Column to insert the new Series column.

series

Series to insert.