polars.DataFrame.replace_at_idx#

DataFrame.replace_at_idx(index: int, new_column: Series) Self[source]#

Replace a column at an index location.

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

Parameters:
index

Column index.

new_column

Series that will replace the column.