> For the complete documentation index, see [llms.txt](https://docs.trymito.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trymito.io/how-to/deleting-rows.md).

# Deleting Rows

Remove entire rows from your dataframe just using your keyboard.

### Why Delete Rows

Sometimes, when importing a new dataset into Mito, your dataset contains rows that don't fit the format of the rest of the data. In these cases, deleting the offending rows will allow you to continue through the rest of your analysis without encountering other errors!

If you're looking to delete rows that meet certain conditions like `greater than` for numbers, or `contains` a specific string, check out our documentation on:

{% content-ref url="/pages/-MYIS4utYDEqE2OjQTBa" %}
[Filter](/how-to/filter-data.md)
{% endcontent-ref %}

### How to Delete Rows

Deleting specific rows is very simple.

1. Select the rows you would like to delete. Make sure to click on the index of the row to select the entire row.
2. Click the Delete key on your keyboard.

![Click on the row before pressing delete.](https://2294704369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MP_U5ZCmiamDOXEOOTC%2Fuploads%2Fln8p7P92YUKrzQ54zJiq%2FScreen%20Shot%202023-11-29%20at%203.26.44%20PM.png?alt=media\&token=f08760f7-a011-41ca-9ff3-9aa42adc0d54)

You can also delete rows by right clicking on them, and then selecting Delete Rows.&#x20;

### Multiple rows with the same index

Pandas identifies rows by the value in the index, and it is perfectly legal to have two rows with the same index. If you delete a row with an index of **10**, and another row has index **10** as well, then both of these rows will be deleted.

If you do not want to delete both rows, we reccomend taking this dataframe outside Mito and updating the indexes of these rows to be different.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.trymito.io/how-to/deleting-rows.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
