# Elo Merchant Category Recommendation — Data

来源：https://www.kaggle.com/competitions/elo-merchant-category-recommendation/data

采集时间：2026-10-24T15:54:34Z

Note: All data is simulated and fictitious, and is not real customer data

## What files do I need?

You will need, at a minimum, the **train.csv** and **test.csv** files.  These contain the `card_id`s that we'll be using for training and prediction.

The **historical_transactions.csv** and **new_merchant_transactions.csv** files contain information about each card's transactions.  **historical_transactions.csv** contains up to 3 months' worth of transactions for every card at any of the provided `merchant_id`s.  **new_merchant_transactions.csv** contains the transactions at _new_ merchants (`merchant_id`s that this particular `card_id` has not yet visited) over a period of two months.

**merchants.csv** contains aggregate information for each `merchant_id` represented in the data set.

## What should I expect the data format to be?  

The data is formatted as follows:

**train.csv** and **test.csv** contain `card_id`s and information about the card itself - the first month the card was active, etc.  **train.csv** also contains the `target`.

**historical_transactions.csv** and **new_merchant_transactions.csv** are designed to be joined with **train.csv**, **test.csv**, and **merchants.csv**.  They contain information about transactions for each card, as described above.

**merchants** can be joined with the transaction sets to provide additional merchant-level information.

## What am I predicting?  

You are predicting a _loyalty score_ for each `card_id` represented in **test.csv** and **sample_submission.csv**.

## File descriptions

*   **train.csv** - the training set
*   **test.csv** - the test set
*   **sample_submission.csv** - a sample submission file in the correct format - contains all `card_id`s you are expected to predict for.
*   **historical_transactions.csv** - up to 3 months' worth of historical transactions for each `card_id`
*   **merchants.csv** - additional information about all merchants / `merchant_id`s in the dataset.
*   **new_merchant_transactions.csv** - two months' worth of data for each `card_id` containing ALL purchases that `card_id` made at `merchant_id`s that were _not visited in the historical data_.

## Data fields

Data field descriptions are provided in **Data Dictionary.xlsx**.