Data Science & AI Foundations

Lesson 1 of 15

What data science and AI are

Data science is the practice of getting insight and predictions from data — cleaning it, exploring it, analysing it, and building models. AI (and its subfield machine learning) is about building systems that learn patterns from data to make predictions or decisions. They're deeply related, and Python is the dominant language for both. This course gives you the foundations — with real, runnable code. Let's start with the big picture.

What data science does

Data science turns raw data into understanding and decisions. A typical workflow:

  1. Get data — from files, databases, APIs, sensors.
  2. Clean it — fix missing values, errors, wrong formats (often the biggest part of the job).
  3. Explore & analyse — summarize, visualize, find patterns and relationships.
  4. Model — build statistical or machine-learning models to predict or classify.
  5. Communicate — turn findings into insights and decisions (charts, reports).

The goal is insight (understanding what the data says) and prediction (what will happen). Data scientists spend a lot of time on steps 2–3 (cleaning and exploring) — the unglamorous but essential foundation.

AI and machine learning

Python — Try it Yourself
Loading editor…
Output
Click Run to execute the code.

Machine learning (ML) — the core of modern AI — flips traditional programming. Instead of you writing the rules, you give the computer data and examples, and it learns the rules (a model) itself. That model then makes predictions on new data. For example, instead of hand-coding "what makes an email spam", you show ML thousands of labelled emails, and it learns the patterns. This learning from data is what makes AI powerful for problems too complex for explicit rules (image recognition, language, prediction).

The Python data toolkit

Python — Try it Yourself
Loading editor…
Output
Click Run to execute the code.

Python dominates data science thanks to its libraries: numpy (fast numerical arrays — the foundation), pandas (tables/DataFrames for real data — the workhorse you'll use most), plus matplotlib (charts) and scikit-learn (machine learning). This course uses numpy and pandas, running live in these lessons (the code above actually imports them and prints their versions — run it!). You'll learn by doing — real data code you can edit and execute.

What you'll learn

This course builds the foundations:

  • numpy & pandas — working with numerical arrays and tabular data.
  • Cleaning & exploring — handling missing values, transforming, summarizing.
  • Statistics to ML — correlation, fitting a model, training/testing, overfitting.
  • How modern AI works — machine learning, deep learning, and how LLMs (like ChatGPT) function, plus data ethics.

By the end, you'll understand the foundations of data science and AI — enough to explore data with real tools and grasp how AI systems work. It assumes basic Python (from Python Essentials).

The mistake beginners make

Thinking data science is only the exciting ML/AI modelling — in reality, most of the work is getting, cleaning, and understanding the data (steps 1–3). Good foundations in data handling (numpy/pandas) matter more than fancy models. Also, thinking AI is magic — it's pattern-learning from data, powerful but dependent on the data (garbage in, garbage out) and fallible. Understand data science as a workflow (get → clean → explore → model → communicate), ML as learning patterns from data, and Python as the toolkit — and get hands-on with real data.

Your turn

Python — Try it Yourself
Loading editor…
Output
Click Run to execute the code.

Your turn

  1. Understand the data science workflow: get -> clean -> explore -> model -> communicate (cleaning/exploring is most of it).
  2. Grasp machine learning: systems that LEARN patterns from data (not hard-coded rules) to make predictions.
  3. Know the Python data toolkit (numpy, pandas) — and run it live to confirm it works.

Key points

  • Data science turns raw data into insight and predictions: get -> clean -> explore -> model -> communicate (cleaning/exploring is most of the work).
  • Machine learning (the core of AI) LEARNS the rules from data + examples (a model), rather than you hard-coding them.
  • Python is the dominant tool: numpy (fast arrays/maths), pandas (tables/DataFrames — the workhorse), plus matplotlib and scikit-learn.
  • AI isn't magic — it's pattern-learning from data (garbage in, garbage out) and fallible; strong data-handling foundations matter most.

Q&A · 0

Enrol to ask questions and join the discussion.

No questions yet — be the first to ask.