InsertDocs
This function does not immediately insert the new column but instead specifies a column to insert and returns an InsertClause, which serves as an intermediate step. The InsertClause object provides methods to insert a new column using:
under- inserts a new column under the specified column group.after- inserts a new column after the specified column.at- inserts a new column at the specified position.
Each method returns a new DataFrame with the inserted column.
Check out Grammar.
This can include column groups and nested columns.
See Selecting Columns.
For more information: See insert on the documentation website.
See also:
Types
Link copied to clipboard
Selecting columns for various DataFrame operations can be done in the following ways: