Module 2 · step 1 of 4 · Data and profiling

Add a dataset

Find the sample data in the Data page, add another sample, and learn how a CSV upload works.

App6 min

In this step you will find the data that comes with the demo, add a second sample, and learn exactly how your own file would enter mlflow. It matters because every model is a function of its data: how the data arrives decides whether later results can be trusted and reproduced.

The idea

In mlflow a dataset is a data source that belongs to the workspace, not to one project. You add it once and every project can build pipelines on it. Whatever you upload (CSV, Excel, Parquet or JSON) is stored as a table, so everything downstream behaves the same. The data source remembers its columns and their types, and each run remembers which data source it used.

Supervised learning needs a column with the known outcome, called the target. You do not mark it here: you choose it when you create a pipeline on the data. The sample catalog shows the suggested Target for each sample so you can see the idea in practice.

Step by step

  1. Select Data in the sidebar. The Data sources page lists the sources of the workspace. Find the employee sample that the churn template added, with its rows and columns.
  2. Select Browse samples. The Sample datasets window opens with a search box and chips for the task: All, Classification, Regression, Clustering and more.
  3. Read a card: rows, columns, size, the Target column and whether the data has missing values.
  4. Select Add to workspace on a small sample that interests you. The card changes to Added to workspace. Close the window and check that the sample is in the list.
  5. Select Add data. The dialog opens on the Upload a file tab. Note the accepted types (CSV, Excel, Parquet and JSON), the Choose file button (or drag a file in) and the Name field. Pick a name that says what the file is, for example customers-2026-11. The demo accepts files up to 5 MB; if you have a small CSV, upload it, otherwise close the dialog.
  6. If you choose an Excel workbook with several tabs, a Sheet field appears, listing each sheet with its rows and columns. The sheet you pick becomes the data source, and its first row is used as the header.
  7. Remember the demo limit: at most 5 data sources. Delete one you do not need before adding more.

In a full account

A full account accepts files up to 64 MB and adds a Connect a database tab, which is not available in the demo. You never need to convert Excel, Parquet or JSON to CSV yourself.

Common mistakes

  • Choosing a file that is too large or of the wrong type. The dialog says so before uploading: it names the file and says it "is not supported" or that "the server accepts files up to N MB".
  • Replacing an old file instead of adding a new one. Upload the newer export under a new name, such as customers-v2, and keep the old source so earlier runs stay reproducible.
  • A header that is not the first row, or a column that mixes numbers with typed units. The next step shows how the profile exposes both.
  • Deleting a source that pipelines still use. mlflow warns This data source is still in use and lists what depends on it.

As a data scientist

Treat each upload as a versioned snapshot: name it with a date, never overwrite it, and note where it came from. Check the first row, the column types and your target idea before anything else; a wrong header or a text column that should be numeric is cheaper to fix now than after training. Sample data is good practice, but real learning comes from your own messy file.

Checkpoint

You should see the employee sample in the Data sources list with its number of rows and columns, and any sample you added marked Added to workspace.

Theory to read next

Read in the docs