# Concatenate (horizontal)

Concatenating dataframes allows you to combine two or more dataframes by stacking the rows on top of eachother. To concatenate multiple dataframes together into a new dataframe, in the `Home` tab, click the `Merge` dropdown and then select `Concat`

<figure><img src="/files/jdxYng8L53fXSO5Lbx0f" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Are you looking to combine two dataframes side by side using a shared key? You're looking to merge these datasets. Check out our documentation on merging datasets [here.](/how-to/combining-dataframes/merging-datasets-together.md)
{% endhint %}

Then, choose the **Join Type** you'd like to use in your concatenate. There are two different types of joins possible when concatenating dataframes:

* **Inner:** Only includes columns that have matches in all sheets.
* **Outer**: Includes all columns from all sheets, regardless of if there is a match in the other sheets. Fills non-matching rows with NaN values automatically.

Next, you have the option to ignore or keep the original indexes in the original dataframes. By default, Mito will reset the indexes in your newly merged dataframe.

Finially, set the dataframes you want to concatenate into a single new dataframe. Mito will automatically create a new sheet that represents this concatenate.


---

# 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/combining-dataframes/concatenate-dataframes.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.
