Add data
Upload a CSV, Excel, Parquet or JSON file, or add a sample dataset to your workspace.
Every project starts with data. In mlflow, a dataset is a data source that belongs to a workspace. Every project in the workspace can use it, so you upload a file once and reuse it in many pipelines.
You can add data in three ways: upload a file, connect a database, or add one of the bundled sample datasets. This page covers files and samples.
To add or delete data you need a workspace role that can write. Viewers are read-only: they can browse data sources but not change them. See Roles and permissions.
Upload a file
Open Data
In the sidebar, select Data. The page lists the Data sources of the workspace.
Select Add data
Select Add data. The Add data dialog opens on the Upload a file tab. If the workspace has no data yet, the empty state shows the same Add data button.
Choose a file
Drag a file onto the drop zone, or select Choose file and pick one from your computer. After you pick a file, the button changes to Choose a different file.
mlflow checks the file type and size in your browser before it uploads anything. If the type is not supported or the file is too large, you see a message under the drop zone and nothing is sent.
Pick a sheet (Excel only)
When you choose an .xlsx workbook, mlflow reads its sheets and shows a Sheet list with the number of rows and columns of each one. The first sheet that has data is selected. Pick another one if you need it. To use two sheets, upload the workbook twice and choose a different sheet each time.
Name the data source
The Name field is filled with the file name. Change it to something you will recognise later, for example customers-2026-q3.
Upload
Select Upload. A progress bar shows the percentage uploaded. When the upload finishes, the dialog closes and the new data source appears in the list with its number of rows and columns.
After the upload, select Explore on the data source to read its profile. See Explore a dataset.
Formats and limits
| Format | Extensions | Notes |
|---|---|---|
| CSV | .csv | The first row holds the column names. |
| Excel | .xlsx | You choose one sheet. The first row is the header, formulas are read as their last saved values and dates are parsed. Legacy .xls files are not supported: open the file in Excel and save it as .xlsx. |
| Parquet | .parquet | Column types are kept as stored in the file. |
| JSON | .json, .jsonl | A list of records (objects), or JSON Lines with one record per line. Nested objects become columns such as address.city. |
Whatever the format, mlflow converts the data to a table when you upload it. Excel, Parquet and JSON data sources therefore behave exactly like a CSV one: you can explore them, see their versions, and use them in the quick wizard, in Pipeline Studio, in training, in batch predictions and as a drift reference. The original format is only recorded as information on the data source. Limits to keep in mind:
- File size. The server accepts files up to 64 MB.
- Rows. A CSV or Parquet file can hold up to 10 million data rows by default. The operator of a self-hosted server can change this.
- Expanded size. Excel and Parquet files are compressed. By default, a file is refused when it would expand to more than 1 GB.
- Your plan. A workspace plan can limit the number of data sources, the size of one dataset and the total storage. When you reach a limit, the dialog tells you which one.
Larger data
If your data is larger than 64 MB, keep it in a database and connect it instead of uploading a file.
Add a sample dataset
Sample datasets are small public datasets that are bundled with mlflow. They are a quick way to try the product or to practise a technique.
Browse the samples
On the Data page, select Browse samples. The Sample datasets window opens with the catalog.
Find a dataset
Use the search box to search by name, task or target column. The chips filter by task: All, Classification, Regression, Clustering, NLP, Anomaly, Association and Other.
Each card shows the number of rows and columns, the file size, the target column and whether the data has missing values.
Add it
Select Add to workspace. The card changes to Added to workspace. The window stays open, so you can add several samples one after another.
A sample is registered as a data source in your workspace under the sample's name, and it behaves like an uploaded CSV file: you can explore it, use it in a pipeline and delete it. The workspace keeps a pointer to the bundled file instead of a copy. Deleting the data source never deletes the bundled file.
For an even faster start, the quick wizard can add a sample, create a project and set up a run in one step.
Names and versions
- Names are unique in a workspace. If a data source with the same name exists, the upload fails with
data source '...' already exists. Choose another name, or delete the old data source first. - A new file is a new data source. To work with a newer file, upload it under a new name, for example
customers-v2, and keep the old data source while your pipelines still use it. - Versions. Select Versions on a data source to open its version history. Each version shows its number (
v1,v2), the number of rows, the size and the date. Select a version to see its Schema (column, Dtype, Nullable) and its Sample rows. For a data source that comes from a database, Refresh now captures a new version. - Deleting. The delete button removes the data source from the workspace. For an uploaded file, the stored file is removed too. A database table is never touched.
Put the date or the source in the name. Runs keep a link to the data source they used, so a clear name helps you understand a run months later.
If an upload fails
| Message | Cause | What to do |
|---|---|---|
"file.txt" is not supported. Use .csv, .xlsx, .xls, .parquet, .json, .jsonl. | The extension is not supported | Export the data as CSV, Excel, Parquet or JSON |
"file.csv" is 80.0 MB; the server accepts files up to 64 MB. | The file is over the size limit | Remove columns or rows you do not need, or connect a database |
could not parse CSV: ... | The file is not valid CSV, or it uses an unusual text encoding | Save the file again as CSV (UTF-8) from a spreadsheet tool and retry |
| This workbook is password-protected | The Excel file is encrypted | Remove the password in Excel and upload again |
| Legacy .xls files are not supported | The file is an old .xls workbook | Open it in Excel, save it as .xlsx and upload again |
| We could not read this Excel file | The file is damaged, or the content is not an Excel workbook even if the name ends in .xlsx | Open and save the workbook again in Excel |
| This workbook has no data | The chosen sheet has no header row or no data rows | Pick a sheet that has data |
| We could not read this JSON file | The file is not a list of records or JSON Lines | Export the data as a list of objects |
data source '...' already exists | The name is already used in this workspace | Choose another name |
| A plan limit notice | The workspace reached its plan limit for data sources, dataset size or storage | Delete data you no longer need, or ask a workspace owner about the plan |
your workspace role is read-only | You are a Viewer | Ask a workspace admin for a role that can write |
Next steps
Learn the theory
Lessons on learning.mlflow.es that explain the ideas behind this page.
Updated 2026-11-22