Skip to content

Profiling data for summary statistics and distributions

In Azure Databricks, you can quickly profile a DataFrame to generate summary statistics and visualize data distributions using built-in notebook tools and Spark SQL functions. This helps identify data quality issues, skew, nulls, and outliers before further transformation or modeling.

1 · Learn the must-know

  • Calling display() on a DataFrame in a Databricks notebook shows a 'Data Profile' tab that automatically computes summary statistics (count, mean, stddev, min, max, percentiles) and histograms for each column.
  • The dbutils.data.summarize(df) command produces an interactive profiling report similar to the Data Profile tab, including numeric distributions, categorical value counts, and missing value percentages.
  • Spark DataFrame's built-in .describe() method returns count, mean, stddev, min, and max for numeric and string columns, while .summary() extends this with configurable percentiles (e.g., 25%, 50%, 75%).
  • Profiling large datasets can trigger a full data scan, so sampling (df.sample()) is recommended before profiling very large tables to control cost and runtime.
  • Null and distinct value counts shown in the Data Profile tab help detect data quality problems such as missing values or unexpected cardinality in categorical columns.
  • Data profiling results are not persisted automatically; if you need repeatable profiling reports, you should capture and store the summary output (e.g., write to a table or file) as part of a pipeline.

2 · Check your understanding

Check this objectiveFree · always available

A data engineer is profiling a numeric column in a Spark DataFrame within an Azure Databricks notebook. Beyond count, mean, standard deviation, min, and max, the engineer also needs the 10th and 90th percentile values to assess the spread of the distribution. Which approach satisfies this requirement?

Your objective map0 tried · 0 answered correctly · 77 untouched

What you have tried across DP-750's objectives, not a readiness score.

Set up and configure an Azure Databricks environment15-20% of the exam0 of 13 tried
Secure and govern Unity Catalog objects15-20% of the exam0 of 12 tried
Prepare and process data30-35% of the exam0 of 28 tried
Deploy and maintain data pipelines and workloads30-35% of the exam0 of 24 tried

3 · Keep going