bach.DataFrame.reset_index
reset_index
(level=None, drop=False)Drops the current index.
With reset_index, all indexes are removed from the DataFrame, so that the DataFrame does not have any
index Series. A new index can be set with set_index()
.
Parameters
level
(Optional[Union[str, Sequence[str]]]) – Removes given levels from index. Removes all levels by defaultdrop
(bool) – if False, the dropped index is added to the data columns of the DataFrame. If True it is removed.
Returns
DataFrame with the index dropped.