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
level(Optional[Union[str, Sequence[str]]]) – Removes given levels from index. Removes all levels by default
drop(bool) – if False, the dropped index is added to the data columns of the DataFrame. If True it is removed.
DataFrame with the index dropped.