Featured resource
2026 Tech Forecast
2026 Tech Forecast

1,500+ tech insiders, business leaders, and Pluralsight Authors share their predictions on what’s shifting fastest and how to stay ahead.

Download the forecast
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Data
Labs

Analyze a Dataset with Descriptive Statistics

In this lab, you'll explore a real-world dataset using Python to uncover how its values are distributed. You'll calculate summary statistics, build visualizations, and learn to describe a dataset's center, spread, and shape with confidence. By the end, you'll have a repeatable workflow for characterizing any tabular dataset before deeper analysis.

Lab platform
Lab Info
Level
Beginner
Last updated
Jul 20, 2026
Duration
45m

Contact sales

By clicking submit, you agree to our Privacy Policy and Terms of Use, and consent to receive marketing emails from Pluralsight.
Table of Contents
  1. Challenge

    Step 1: Load and inspect the dataset

    Descriptive statistics turn raw rows and columns into a profile you can explain to stakeholders. In this lab, you will build that profile for an employee compensation dataset using Python, pandas, and matplotlib.

    You will work in a single analysis script that loads a CSV file, computes summary statistics, saves distribution charts, and prints an interpretation you can share with a people analytics team. The lab's codebase lives in the application directory. It already includes analyze.py, data/employees.csv, and an output/ folder for saved charts. To begin, you will load the dataset and confirm its structure before adding any calculations.

    Feeling stuck? Check out the matching solution/stepN/ folder for the step you're on to see a working implementation. Give it a try on your own first. The solution folder is your safety net, not your starting point. info> This lab experience was developed by the Pluralsight team using an internally developed AI tool. All sections were verified by human experts for accuracy prior to publications. However, content may still contain errors or inaccuracies, and we recommend independent verification.

    To report a problem or provide feedback, click here. Feedback may be used to improve accuracy in accordance with our Privacy Policy.

  2. Challenge

    Step 2: Calculate measures of central tendency

    Your script now loads the compensation dataset and reports its structure. That inspection step confirms which columns are numeric and ready for statistical summaries.

    Here, you will add mean, median, and mode calculations for columns such as salary, years_experience, and performance_rating. Each measure highlights a different view of where values cluster in the distribution.

  3. Challenge

    Step 3: Calculate measures of spread

    Central tendency shows where values cluster, but spread measures reveal how much variation exists across employees.

    In this step, you will add range, variance, and standard deviation calculations for the numeric columns in NUMERIC_COLUMNS. These metrics quantify how widely compensation and related fields vary.

  4. Challenge

    Step 4: Compute the five-number summary

    Center and spread metrics describe a distribution in broad terms. Quartiles let you describe shape more precisely and flag unusual values.

    You will add the five-number summary and interquartile range for the numeric columns, then use the 1.5 Ă— IQR rule to identify potential salary outliers.

  5. Challenge

    Step 5: Visualize distributions

    Summary statistics quantify distribution characteristics, but charts make skewness and spread easier to communicate.

    You will add matplotlib visualizations that save histograms and box plots for the numeric columns in NUMERIC_COLUMNS. The saved files will complement the numeric summaries from earlier steps.

  6. Challenge

    Step 6: Interpret the analysis

    Your script now computes statistics and saves charts. The final piece is a written summary that connects those numbers and visuals into a coherent dataset characterization.

    You will add an interpretation section that describes center, spread, and skewness for the compensation dataset, then run the completed script to review the full analysis end to end.

  7. Challenge

    Lab Complete

    You built a descriptive statistics workflow in Python that characterizes an employee compensation dataset from first load through final interpretation.

    You loaded and inspected a CSV with pandas, calculated measures of central tendency and spread, computed quartiles and outlier fences, saved histogram and box plot visualizations, and synthesized those findings into a stakeholder-ready summary. These skills form a repeatable first pass you can apply to any tabular dataset before deeper modeling or inference work.

About the author

Pluralsight’s AI authoring technology is designed to accelerate the creation of hands-on, technical learning experiences. Serving as a first-pass content generator, it produces structured lab drafts aligned to learning objectives defined by Pluralsight’s Curriculum team. Each lab is then enhanced by our Content team, who configure the environments, refine instructions, and conduct rigorous technical and quality reviews. The result is a collaboration between artificial intelligence and human expertise, where AI supports scale and efficiency, and Pluralsight experts ensure accuracy, relevance, and instructional quality, helping learners build practical skills with confidence.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight