SyntaxFix
Write A Post
Hire A Developer
Questions
One can use df.insert(index_to_insert_at, column_header, init_value) to insert new column at a specific index.
df.insert(index_to_insert_at, column_header, init_value)
cost_tbl.insert(1, "col_name", "")
The above statement would insert an empty Column after the first column.