Module 2 · step 2 of 4 · Data and profiling

Profile a dataset

Open the data profile and read the quality score, columns, correlations and warnings.

App8 min

In this step you will open the Data profile of the employee sample and read it like a data scientist: size, columns, missing values, correlations and quality warnings. It matters because a few minutes here find the problems that otherwise show up weeks later as a model that does not work.

The idea

The profile summarises a data source in one place. It is computed by fixed rules, so the same data always gives the same profile; nothing is guessed by a model. The Quality score is a summary built from named checks (missing values, duplicates, outliers, leakage, class balance and more), each with a penalty and a weight. The score is only a headline: the real value is the list of reasons behind it, each naming a column and the number that triggered it.

The profile also feeds the next module. What you spot here (a column with many gaps, a heavily skewed number, a category with many values) is what you will fix in the Columns part of Pipeline Studio, where the Suggested: rows are computed from this same profile.

Step by step

  1. Select Data in the sidebar, then Explore on the employee data source. The Data profile page opens with six tabs: Overview, Columns, Correlations, Missing, Quality and Sample.
  2. On Overview, read the tiles: Quality, Rows, Columns, Missing, Duplicates, and the counts of Numeric and Categorical columns. Look at Top columns by missing.
  3. Open Columns. Select a numeric column and read its Distribution and Statistics (Min, Median, Mean, Std, Skew, Outliers (IQR)). Then select a categorical column and read its Top values.
  4. Open Correlations and read the Strongest correlations table. Note the pair with the largest value of r.
  5. Open Missing and compare Missing rate by column with what you saw on Overview.
  6. Open Quality. Read the Quality score card, which lists each check with its penalty and weight, then All warnings, Target leakage and Class balance.
  7. Open Sample and check that the first rows look as you expect.
  8. Write down three questions the profile raised, for example about a column that looks suspicious. You will answer them when you build the pipeline.

Why the target cards may be empty

Target leakage and class balance need the target. mlflow does not guess it; it takes the target of a pipeline that already uses the data source. The demo's churn pipeline uses this sample, so those cards have content. On a data source no pipeline uses yet they stay empty, and those checks are left out of the score rather than counted as clean.

Common mistakes

  • Reading only the Quality tile. Open All warnings: each one is a question about a specific column.
  • Expecting leakage or class balance on a data source with no pipeline. The Quality tab explains that no target column is recorded, so they are not assessed.
  • Treating a high correlation as proof of leakage. It may be real signal; the test is whether you would know that value when you make a prediction.
  • Judging a column by its mean alone. Compare Mean with Median, and look at Skew and Outliers (IQR).

As a data scientist

Exploratory analysis is a habit: look at every dataset before you model it and keep a short list of hypotheses to test. Treat every flag as a question, not a verdict. In mlflow the profile is cheap and repeatable, so reopen it whenever a new version of the data arrives and see what changed.

Checkpoint

You should see the Data profile page with six tabs and a Quality score with a grade, and you can name the columns with the most missing values, if any.

Theory to read next

Read in the docs