Find a course
Age level: University students (18–25)IntermediateData & AI

Python for Data Science

NumPy, pandas, data cleaning, charts and a first model with scikit-learn

⏱ 2 h 50 min5 modules · 12 lessons76 practice questionsFinal exam: 20 questions
Included with this course

Your certificate for this course

Finish the 12 lessons (about 2 h 50 min) and pass the 20-question final exam. Your Certificate of Completion is ready the moment you pass.

  • Your name and this course titlePrinted in classic diploma typography
  • Grade: Pass, Merit or DistinctionOn the gold seal, with your final score
  • Unique ID and QR codeAnyone can verify it in seconds
  • Score report PDFModule-by-module results and exam score
  1. Lessons12 lessons
  2. Final exam20 questions · 70% to pass
  3. CertificatePDF + score report

What you will learn

  • Describe the data science workflow and the role of NumPy, pandas, Matplotlib, seaborn and scikit-learn
  • Summarize data in plain Python with lists, dictionaries, comprehensions and lists of records
  • Create and reshape NumPy arrays, vectorize calculations, filter with boolean masks, aggregate by axis and apply broadcasting rules
  • Load, inspect, select, filter, sort and add columns to pandas DataFrames using loc, iloc and vectorized operations
  • Group and aggregate data, build pivot tables, and merge or reshape tables while checking row counts for duplicate keys
  • Clean missing, duplicated and malformed values with documented, repeatable steps
  • Summarize distributions with mean, median, standard deviation and percentiles, flag outliers and interpret correlation
  • Choose honest charts, and train and evaluate a linear regression with train-test splits, MAE, R² and a baseline

About this course

Python is the most widely used language for working with data, and a few libraries do most of the heavy lifting. This free course teaches the core of that toolkit by following the path of a real project: from a question and a messy file to clean data, clear charts and a first predictive model.

You'll start with the data science workflow and the Python data stack, then practice the plain-Python structures every library builds on: lists, dictionaries, comprehensions and lists of records. Next comes NumPy: arrays, shapes and dtypes, vectorized math, boolean masks, aggregating along axes and broadcasting.

The largest module covers pandas: loading and inspecting DataFrames, selecting with loc and iloc, filtering, sorting and creating columns, grouping and aggregation, pivot tables, merges and reshaping, including the row-count checks that keep joins from silently duplicating data. Then you'll clean messy data (missing values, duplicates, wrong types, inconsistent text) and explore it with medians, standard deviations, percentiles, outlier rules and correlation.

Finally, you'll choose honest charts with Matplotlib and seaborn and train and evaluate a linear regression with scikit-learn, learning train-test splits, MAE and R², baselines, overfitting and data leakage.

The course is for students and professionals who know basic Python (variables, loops, functions) and want to use it for analysis. Throughout, you'll write real Python that runs directly in your browser, implementing what the libraries do under the hood, alongside calculators, interactive charts, bug hunts and scenarios. Pass the final exam to earn a free certificate of completion.

Syllabus

  1. The Python Data Toolkit

    Follow the data science workflow, meet the Python data stack, and summarize data with lists, dictionaries and comprehensions.

    1. The Data Science Workflow in Python12 min
    2. Python Data Structures for Data Work14 min
  2. NumPy: Fast Numeric Arrays

    Create and reshape NumPy arrays, vectorize calculations, filter with boolean masks, aggregate along axes and use broadcasting.

    1. NumPy Arrays and Vectorization14 min
    2. Indexing, Boolean Masks and Axes14 min
  3. pandas: Working with Tables

    Load, inspect, select, filter, sort, group, aggregate, merge and reshape tabular data with pandas Series and DataFrames.

    1. pandas Series and DataFrames14 min
    2. Filtering, Sorting and Creating Columns14 min
    3. Grouping and Aggregation15 min
    4. Merging, Joining and Reshaping14 min
  4. Cleaning and Exploring Data

    Clean missing, duplicated and malformed data, then explore it with measures of center, spread, outliers and correlation.

    1. Cleaning Messy Data15 min
    2. Descriptive Statistics and Exploratory Analysis15 min
  5. Visualization and a First Model

    Choose and build honest charts with Matplotlib and seaborn, then train and evaluate a first predictive model with scikit-learn.

    1. Visualizing Data with Matplotlib and seaborn14 min
    2. Your First Predictive Model with scikit-learn16 min
  6. Final exam and certificate

    20 questions drawn from a pool of 33. Score 70% or more to pass; retakes get a fresh set of questions.

Try a sample question

In most real data projects, cleaning and understanding the data takes more effort than building the final model.

True or false?

Show the answer

Answer: True

Practitioner surveys and experience consistently show that preparing data, meaning loading, fixing types, handling missing values, merging sources and checking for errors, takes a large share of project time. A model is only as good as the data it learns from.

NumPy
A Python library for fast n-dimensional arrays and numeric operations.
ndarray
NumPy's array type: a grid of values that all share one dtype.
Shape
A tuple giving the size of an array or DataFrame along each dimension, such as (rows, columns).
dtype
The data type of an array's or column's values, such as int64, float64 or object.
Vectorization
Applying an operation to a whole array at once instead of looping over elements in Python.
Boolean mask
An array of True/False values used to select the matching elements or rows.

Frequently asked questions

Do I need to install anything?

No. The code challenges run real Python in your browser. To use NumPy, pandas and scikit-learn on your own data afterwards, install Python with those libraries (for example through Anaconda or pip) or use a free hosted notebook.

Why do the code challenges use plain Python instead of pandas?

The in-browser sandbox includes the Python standard library only. Implementing averages, groupings, joins and error metrics by hand is also the best way to understand what pandas and scikit-learn do, while the lessons teach the library syntax side by side.

How much Python do I need first?

You should be comfortable with variables, lists, dictionaries, loops, if statements and writing simple functions. If those feel new, take a beginner Python course first and come back.

What is the difference between NumPy and pandas?

NumPy provides fast arrays of numbers that all share one type, ideal for math. pandas builds on NumPy to provide labeled tables with mixed column types, plus tools for loading files, handling missing data, grouping and joining.

Is this a machine learning course?

Only the last lesson covers modeling, with a first linear regression and the evaluation habits that matter most. The course focuses on the data skills that every machine learning project depends on.

Is the certificate an accredited qualification?

No. It is a certificate of completion showing that you finished the lessons and passed the final exam. It is a good way to show initiative, but it is not an academic credential.

Sources and further reading

Related courses

University studentsIntermediate

Data Cleaning Essentials

Fix missing values, messy text, bad dates, duplicates and outliers with a repeatable process

Data & AI
2 h 40 min12 lessonsCertificate
Adults & professionalsBeginner

Data Analysis Fundamentals

Ask good questions, clean data, summarize it honestly and turn numbers into decisions

Data & AI
2 h 20 min12 lessonsCertificate
University studentsIntermediate

Machine Learning Fundamentals

Regression, classification, evaluation and clustering, explained with live models and code

Data & AI
2 h 50 min11 lessonsCertificate
Adults & professionalsBeginner

SQL for Beginners

Query, filter, summarize and join data with confidence

Data & AI
2 h 10 min11 lessonsCertificate
Adults & professionalsIntermediate

Statistics for Data Analysis

The statistics analysts use every day, from skewed averages to A/B tests

Data & AI
2 h 20 min11 lessonsCertificate
Adults & professionalsBeginner

Data Visualization Basics

Choose the right chart, design it clearly and present data honestly

Data & AI
2 h 5 min11 lessonsCertificate