DataFrame.setIndex
Set the DataFrame index using existing columns or an array (of the equal length).
Last updated
Was this helpful?
Set the DataFrame index using existing columns or an array (of the equal length).
Last updated
Was this helpful?
danfo.DataFrame.setIndex(options) []
options
Object
{
index: An array of index values to set.
column: A column name to set the index to.
drop: Whether to drop the column whose index was set. Defaults to false.
inplace: Boolean indicating whether to perform the operation inplace or not. Defaults to false
}
{drop: false, **inplace:**false}
Note: To reset an index to the default values, use the .