woodwork.table_accessor.WoodworkTableAccessor.set_index¶
-
WoodworkTableAccessor.
set_index
(new_index)[source]¶ Sets the index column of the DataFrame. Adds the ‘index’ semantic tag to the column and clears the tag from any previously set index column.
Setting a column as the index column will also cause any previously set standard tags for the column to be removed.
Clears the DataFrame’s index by passing in None.
- Parameters
new_index (str) – The name of the column to set as the index