woodwork.schema.Schema.set_index

Schema.set_index(new_index)[source]

Sets the index. Handles setting a new index, updating the index, or removing the index.

Parameters

new_index (str) – Name of the new index column. Must be present in the Schema. If None, will remove the index.