To learn Python for data science for free, follow seven steps: set up free tools such as Google Colab, learn core Python, then NumPy and pandas, then charts with Matplotlib, then basic statistics and SQL, then machine learning with scikit-learn, and finally build three small projects. Everything you need is available at no cost: official documentation, free courses from Kaggle and Harvard’s CS50, and full textbooks that their authors publish online. At about one hour a day, most beginners finish this path in four to five months.
Key takeaways
- You do not need to pay for a course. Free resources cover everything from your first line of Python to your first machine learning model.
- Learn in this order: Python basics, NumPy and pandas, data visualisation, statistics and SQL, machine learning, projects.
- Google Colab runs Python in your browser for free, so you can start without installing anything.
- Plan for 16 to 20 weeks at around one hour a day.
- Projects matter more than certificates. Finish with three small projects on GitHub.
Why learn Python for data science?
Python is the most common language in data science because it is easy to read and has excellent free libraries for every step of the work: pandas for tables, Matplotlib for charts and scikit-learn for machine learning.
- Python is used by 58.0% of developers in the Stack Overflow Developer Survey 2026, close behind SQL at 58.4%. Those two languages are exactly what this guide teaches.
- The US Bureau of Labor Statistics projects data scientist jobs to grow 35% from 2025 to 2035, much faster than average (BLS Occupational Outlook Handbook). These are US figures, but they show the direction of the field.
What you need before you start
- A computer or even a Chromebook with a web browser. Google Colab runs in the browser.
- A free Google account for Colab, and a free Kaggle account for its courses and datasets.
- School-level maths. If you understand percentages, averages and simple graphs, you are ready. You will pick up the rest of the statistics along the way.
- About one hour a day. Regular short sessions work better than one long weekend session.
No previous coding experience is needed.

How to learn Python for data science for free: 7 steps
Step 1: Set up free tools (Day 1)
Open Google Colab, sign in with your Google account and click New notebook. Type print("Hello, data") in the first cell and press Shift + Enter. That is it: you are running Python. Colab already includes pandas, NumPy, Matplotlib and scikit-learn.
If you prefer to work offline, install Python from python.org and then install Jupyter. You can also try Jupyter in your browser without an account at jupyter.org/try.
Step 2: Learn core Python (Weeks 1 to 4)
Learn only the basics you will use every day with data:
- Variables and data types: numbers, strings and booleans.
- Lists and dictionaries. Our guide to list vs tuple vs set vs dictionary explains when to use each.
ifstatements andforloops.- Functions, and importing libraries with
import. - Reading a file and handling simple errors.
Free resources: Kaggle’s Intro to Programming and Python courses (short and hands-on), Harvard CS50’s Introduction to Programming with Python (free video lectures and problem sets), and the official Python Tutorial for reference. For a day-by-day plan, see how to learn Python from scratch.
Step 3: Learn NumPy and pandas (Weeks 5 to 8)
This is the heart of Python for data science. NumPy handles fast number arrays. pandas lets you load a spreadsheet-like table (a DataFrame), then filter, sort, group and clean it.
Practise these tasks until they feel easy: reading a CSV file, selecting columns, filtering rows, handling missing values, groupby with sums and averages, and merging two tables.
Free resources: NumPy: the absolute basics for beginners, 10 minutes to pandas, Kaggle’s Pandas and Data Cleaning courses, and the free online edition of Python for Data Analysis by Wes McKinney, the creator of pandas.
Step 4: Learn data visualisation (Weeks 9 to 10)
Charts help you spot patterns and explain results. Learn line charts, bar charts, histograms and scatter plots with Matplotlib, then try Seaborn for quicker, nicer statistical charts.
Free resources: Kaggle’s Data Visualization course and the official Matplotlib tutorials.
Step 5: Learn basic statistics and SQL (Weeks 11 to 13)
Statistics tells you whether a pattern is real or just luck. Focus on mean, median, standard deviation, distributions, correlation, probability and the idea of a hypothesis test. You do not need advanced maths to start.
SQL is how companies store their data, so most data jobs ask for it. Learn SELECT, WHERE, GROUP BY and JOIN.
Free resources: Khan Academy Statistics and Probability, the free book Think Stats (it teaches statistics with Python code), SQLBolt for interactive SQL lessons and Kaggle’s Intro to SQL. Our SQL for beginners tutorial also walks through the basics with examples.
Step 6: Learn machine learning basics with scikit-learn (Weeks 14 to 16)
Machine learning means teaching a computer to make predictions from examples. Start with scikit-learn and learn how to split data into training and test sets, train a simple model such as linear regression or a decision tree, and measure how good it is. If the idea is new, read what is machine learning first.
Free resources: Kaggle’s Intro to Machine Learning, the scikit-learn Getting Started guide and the free online Python Data Science Handbook by Jake VanderPlas, which covers NumPy, pandas, Matplotlib and scikit-learn in one place.
Step 7: Build three projects and share them (Weeks 17 to 20)
Projects turn what you learned into proof that you can do the work. Pick free datasets from Kaggle Datasets and build:
- An exploratory analysis: clean a dataset with pandas and answer three questions with charts.
- A dashboard-style report: summarise sales, cricket or weather data with grouped tables and clear charts.
- A prediction model: predict house prices or customer churn with scikit-learn and explain the result.
Put each project in a free GitHub repository with a short README: the question, the data, what you did and what you found. For ideas, see our data science projects for beginners and Python projects for beginners.
Best free resources at a glance
| What to learn | Best free resource | Format |
|---|---|---|
| Running Python with no install | Google Colab | Browser notebook |
| Python basics | Kaggle Learn: Python, CS50P | Short lessons, video course |
| NumPy and pandas | 10 minutes to pandas, Python for Data Analysis | Docs, free online book |
| Charts | Kaggle Learn: Data Visualization | Short lessons |
| Statistics | Khan Academy, Think Stats | Videos, free book |
| SQL | SQLBolt | Interactive lessons |
| Machine learning | Kaggle Learn: Intro to ML, Python Data Science Handbook | Short lessons, free book |
| Practice datasets | Kaggle Datasets | Free data downloads |
freeCodeCamp’s Data Analysis with Python certification is also still free to take, though freeCodeCamp notes that this section is no longer being updated.
A simple 20-week study plan
| Weeks | Focus | You can do this at the end |
|---|---|---|
| 1 to 4 | Core Python | Write small programs with loops, lists, dictionaries and functions |
| 5 to 8 | NumPy and pandas | Load, clean and summarise a CSV file |
| 9 to 10 | Matplotlib and Seaborn | Make clear charts that answer a question |
| 11 to 13 | Statistics and SQL | Explain averages, spread and correlation, and write basic SQL queries |
| 14 to 16 | scikit-learn | Train and evaluate a simple prediction model |
| 17 to 20 | Projects | Show three finished projects on GitHub |
If you can give two hours a day, you can finish in roughly half the time. If you have less time, keep the same order and simply stretch each stage.
Worked example: your first data analysis in Colab
This short example uses a small, made-up table of shop sales so you can run it in a new Colab notebook without downloading anything. It shows the core pandas and Matplotlib skills from steps 3 and 4.
import pandas as pd
import matplotlib.pyplot as plt
# A small example dataset (made-up numbers)
data = {
"month": ["Jan", "Jan", "Feb", "Feb", "Mar", "Mar"],
"product": ["Tea", "Coffee", "Tea", "Coffee", "Tea", "Coffee"],
"sales": [120, 90, 150, 110, 170, 95],
}
df = pd.DataFrame(data)
# 1. Look at the data
print(df.head())
# 2. Total sales per product
print(df.groupby("product")["sales"].sum())
# 3. Sales trend per month
monthly = df.groupby("month", sort=False)["sales"].sum()
monthly.plot(kind="bar", title="Total sales by month")
plt.ylabel("Units sold")
plt.show()The output shows that tea sold 440 units and coffee 295, and the bar chart shows total sales rising from January to March. Asking a question, grouping the data and drawing a chart is exactly what data analysts do every day, just with bigger tables.
Common mistakes to avoid
- Watching without typing. Type every example yourself and change it to see what happens.
- Jumping to deep learning too early. pandas, charts and basic statistics solve most real business problems.
- Collecting courses. Pick one resource per step and finish it before moving on.
- Skipping SQL. Most data jobs test it, and it is quick to learn.
- Waiting until you “know enough” to start a project. Start a small project after step 4 and improve it as you learn.
Frequently asked questions
Can I really learn Python for data science for free?
Yes. Free courses from Kaggle and Harvard CS50, official documentation, and free online books such as the Python Data Science Handbook cover everything from basics to machine learning. Paid courses mainly add structure, mentoring and certificates.
How long does it take to learn Python for data science?
Most beginners need 16 to 20 weeks at about one hour a day to cover Python, pandas, charts, statistics, SQL and basic machine learning, and to build a few projects. Becoming job-ready usually takes longer and depends on your projects and practice.
Do I need to know maths to learn Python for data science?
You only need school-level maths to start. Learn basic statistics such as averages, spread and correlation alongside Python. Deeper maths like linear algebra becomes useful later for advanced machine learning.
Which free platform is best for beginners?
Kaggle Learn is a good first choice because its courses are short, hands-on and run in the browser, and Kaggle also gives you free datasets for projects. Pair it with Google Colab for your own practice notebooks.
Do I need to install anything?
No. Google Colab and Kaggle notebooks run Python in your browser with pandas, NumPy, Matplotlib and scikit-learn already installed. You can install Python and Jupyter on your computer later if you want to work offline.
Can I get a job with free resources only?
Yes, employers look at what you can do rather than where you learned it. Strong projects on GitHub, clear explanations and good SQL and pandas skills matter more than paid certificates. Practise with our data science interview questions when you are ready.
Explore more data science and AI guides or our Python tutorials.
Sources
Figures in this guide come from the sources below, and every resource link was checked on 2 December 2026. Figures may change when new reports are published.
