# Reset Index

### Why reset a dataframes index

By default, dataframes are indexed from `0...n-1`. This means that every row in the dataframe is uniquely identified by an index number.&#x20;

In Mito, much like in Excel, when you filter or sort your dataframe, you rows can get our of order, and so the indexes displayed on the side might not be in order as well. We preserve these indexes until you manually decide to reset them (which might make your formulas easier to parse, etc).&#x20;

### How to Reset a Dataframes Index

1. Right click on the index, and click either `Reset and Drop Index` or `Reset Index`.&#x20;
   1. `Reset and Drop Index` will reset the index to `0...n-1`.
   2. `Reset and Drop Index` will reset the index to `0...n-1`, and adds the index to the dataframe.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.trymito.io/how-to/reset-index.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
