# Combining Dataframes

## Why combine dataframes

If you have mulitple dataframes, it can be useful to combine them into a single dataframe. This may be because they share a key, and you want to analyze the data together, or that the dataframes are each pieces of a larger dataset that were split up for performance reasons, or something else entirely. Mito has tools that make combining these dataframes together incredibly easy!

## Different ways to combine data:

{% hint style="info" %}
Looking to include use VLOOKUP like in Excel? In Mito, you can use the VLOOKUP formula just like Excel. See the formula documentation [here](/how-to/interacting-with-your-data/mito-spreadsheet-formulas.md#vlookup).&#x20;
{% endhint %}

Merge combines dataframes based on values in shared columns (like a VLOOKUP in Excel):

{% content-ref url="/pages/-MYIPtvCumDYNsdH5-vZ" %}
[Merge (horizontal)](/how-to/combining-dataframes/merging-datasets-together.md)
{% endcontent-ref %}

Concat is used to stack two dataframes on top of eachother:

{% content-ref url="/pages/UUUgKohLKTlWDonN3VrD" %}
[Concatenate (horizontal)](/how-to/combining-dataframes/concatenate-dataframes.md)
{% endcontent-ref %}

Dataframe difference calculates the difference between two dataframes:

{% content-ref url="/pages/Gojqxwy80WzankuE6716" %}
[Anti-merge (unique)](/how-to/combining-dataframes/anti-merge-unique.md)
{% endcontent-ref %}


---

# 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.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.
