> 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/combining-dataframes.md).

# Combining Dataframes

Join datasets together by selecting keys, concatenate dataframes on top of each other, or find unique values between datasets.

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