polars.DataFrame.insert_at_idx#

DataFrame.insert_at_idx(index: int, column: Series) Self[source]#

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

Deprecated since version 0.19.14: This method has been renamed to insert_column().

Parameters:
index

Column to insert the new Series column.

column

Series to insert.