← All open source projects

Python Data Science Handbook

jakevdp/PythonDataScienceHandbook

Python Data Science Handbook is Jake VanderPlas’s open book in Jupyter Notebook form for the Python data science stack.

Forks 18,975
Author jakevdp
Language Jupyter Notebook
License MIT
Synced 2026-06-10

What it is

Python Data Science Handbook is a repository containing the full book by Jake VanderPlas as Jupyter notebooks. It is a learning path through the Python data science stack: IPython/Jupyter, NumPy, pandas, Matplotlib, scikit-learn, and related tools. Its value is that prose and executable code live together.

The repository appeared in 2016 and became a convenient entry point for people who want not only to read about data analysis, but also to run examples. The materials can be read online, downloaded as notebooks, launched in Google Colab, or opened through Binder.

What is inside

Inside are the notebooks directory, book index, text materials, and examples. The book assumes basic Python knowledge and moves from the interactive environment to arrays, tables, visualization, and machine learning. It is a coherent learning text rather than a pile of notes.

A small example in the spirit of the book

This snippet shows the learning pattern: data is created or loaded, turned into a table, and immediately analyzed in a notebook.

Language: Python
import pandas as pd

data = pd.DataFrame({
    "city": ["Almaty", "Berlin", "Tokyo"],
    "temperature": [22, 18, 27],
})

print(data.sort_values("temperature", ascending=False))

Where it is useful

The repository is useful for students, analysts, developers, and teachers who need a structured introduction to Python for data work. It is especially good for self-study: read a chapter, change the code, break the example, and see the result immediately.

Limitations

Parts of the software environment have changed since the book was written: Python, pandas, scikit-learn, and Jupyter versions have moved forward. Examples should be run carefully in a modern environment. Still, as a foundational learning route through ideas and core tools, the repository remains valuable.