woodwork.table_schema.TableSchema.set_index

TableSchema.set_index(new_index, validate=True)[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 TableSchema. If None, will remove the index.