# Top / Bottom N

## How to Access This Feature

* Click "+" button and select "Keep Only ..." menu. Then select its "Top N" or "Bottom N" submenu.
* You can also select "Keep Only ..." from the column menu of the column on which you want to apply top/bottom N operation, and then select "Top N" or "Bottom N" from its submenu.

## Keep Only Top / Bottom N Rows

* Choose between "Top" tab or "Bottom" tab.
* Specify the number (N) of top/bottom rows to keep in the text field.
* Select the column to apply top/bottom N operation from "Based on" dropdown.
* Click "Run" button to keep only top/bottom N rows.


---

# 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.exploratory.io/data-wrangling/top_n.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.
