Open-source project
jakevdp/PythonDataScienceHandbook avatar
jakevdp/PythonDataScienceHandbook

Python Data Science Handbook: A Full Book in Notebooks, With a Licensing Catch

Jupyter notebooks for Jake VanderPlas’s Python Data Science Handbook, covering NumPy, pandas, visualization, and machine learning.

50,517 stars19,153 forksJupyter NotebookMIT

At a glance

What is it?
Jake VanderPlas's Python Data Science Handbook is distributed as executable Jupyter notebooks, covering NumPy, Pandas, Matplotlib, and Scikit-Learn. The code is MIT-licensed, but the text is CC-BY-NC-ND, which limits how you can reuse the prose.
Who is it for?
Adopt this repository if you want a free, executable reference for the core Python data stack and you are comfortable reading notebooks rather than a printed book. Do not adopt it if you need to redistribute or adapt the text, because the CC-BY-NC-ND license forbids derivatives and commercial use.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Probably not. The repository last received commits 29 months ago, on June 26, 2024.
What is it written in?
Mainly Jupyter Notebook, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • jakevdp/PythonDataScienceHandbook50,517 ★ · +923
Star history
Repository2026-08-132026-11-25
jakevdp/PythonDataScienceHandbook49.6k50.5k

923 Stars in the last 104 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

What This Repository Actually Is

This is not a software library. It is the complete text of Jake VanderPlas's Python Data Science Handbook, published by O'Reilly, converted into Jupyter notebooks. The repository holds the book's chapters as notebooks in a notebooks directory, plus an Index.ipynb that links them together. The intended audience is a working engineer or researcher who already knows Python and needs a practical reference for the data stack: IPython, NumPy, Pandas, Matplotlib, and Scikit-Learn. The README explicitly assumes Python familiarity and points beginners to a separate companion project, A Whirlwind Tour of Python. So if you are new to the language itself, this is the wrong starting point.

The Mechanism: Notebooks as the Unit of Delivery

The core design choice is that each chapter is a notebook, not a static page. That means the code samples are executable in place. You can open a notebook, run a cell, and see the output immediately, which is a different experience from reading a PDF or a website. The README links an online version of the book at jakevdp.github.io/PythonDataScienceHandbook alongside the notebooks. The README lists three ways to run them: Google Colab, Binder, and a local conda environment. The Binder and Colab links point directly to the Index notebook, so a reader can start a live session without cloning anything. This is a practical approach for a book: the notebook format collapses the gap between reading and running.

Getting It Running: Commands and Constraints

The README gives two concrete installation paths. The simplest is to install the pinned dependencies with conda: conda install --file requirements.txt. For an isolated setup, it suggests creating a dedicated environment named PDSH with Python 3.5: conda create -n PDSH python=3.5 --file requirements.txt. That second command pins Python to 3.5, which is a significant constraint today. The README notes that the code was tested with Python 3.5 and that most, but not all, will work with Python 2.7 and other older versions. It also warns that some exact package versions in requirements.txt may not be available on your platform, so you may have to tweak them. In practice, that means you should expect to adjust versions for a modern Python installation. The binder and Colab links avoid local setup entirely, which is the fastest path to seeing the code run.

Limitations: Age, Scope, and the Python 3.5 Problem

The most obvious limitation is the age of the dependencies. The book was written and tested with Python 3.5, which reached end-of-life in 2020. The README itself admits that not all code will work with other versions. Some APIs in NumPy, Pandas, and Scikit-Learn have changed since then, so a notebook that ran in 2016 may raise a deprecation warning or fail outright on a current environment. The requirements.txt file pins versions, but the README's caveat about platform availability means you cannot assume a clean install. The second limitation is scope: the book covers IPython, NumPy, Pandas, Matplotlib, Scikit-Learn and related packages, and it was written against 2016-era versions of them. If you need the latest best practices, this is a historical reference, not a current one. The third limitation is the license split, which is detailed below.

The License Split: MIT for Code, CC-BY-NC-ND for Text

The repository has two licenses, and the distinction matters. The code, including all code samples in the notebooks, is released under the MIT license. That means you can reuse the code in your own projects, even commercially, as long as you preserve the copyright notice. The text content of the book is released under CC-BY-NC-ND, which stands for Attribution, NonCommercial, NoDerivatives. That license forbids commercial use and forbids creating derivative works. In plain terms, you cannot remix the prose, translate it, or republish it for profit. For an engineer, this means you can copy a code snippet into your application freely, but you cannot take a paragraph of explanation and put it in your internal documentation without permission. This is a common pattern for technical books, but it is a real constraint if you planned to adapt the material for a course or an internal wiki.

Alternatives: What Else to Consider

The obvious alternative to this repository is the official documentation for each library. The Pandas user guide, the NumPy manual, and the Scikit-Learn documentation are all free, current, and under permissive licenses. The difference in approach is that the official docs are reference-oriented, organized by API and topic, while this book is narrative-oriented, organized as a linear reading path. If you want a guided introduction that builds concepts in order, the handbook is better. If you need to look up a specific function signature or a recent change, the official docs are more reliable and more up to date. Another alternative is the free online version of the book itself at jakevdp.github.io/PythonDataScienceHandbook, which is the same content in a more readable format. The notebooks add interactivity, but the website is easier to skim. For a more modern treatment, consider the book 'Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow', which covers newer versions of the same libraries, though it is not free.

Maintenance and Upgrade Cost

The repository has no GitHub releases, and its last push was on 2024-06-26. The README's reference to Python 3.5 and the specific package versions indicate the content has not been updated for current Python releases. The upgrade cost for you is the time spent adjusting the environment. You will likely need to create a conda environment with older packages, or modify requirements.txt to match your platform. If you choose to run on a modern Python, expect to debug at least a few notebooks. The license does not permit you to redistribute a modified version of the text, so you cannot easily share your fixes with the community. For a book, this is acceptable: the value is in the reading and the code, not in ongoing updates. But if you need a living reference that tracks library changes, this is not it.

Editorial conclusion

Adopt this repository if you want a free, executable reference for the core Python data stack and you are comfortable reading notebooks rather than a printed book. Do not adopt it if you need to redistribute or adapt the text, because the CC-BY-NC-ND license forbids derivatives and commercial use. Before relying on it for production code, verify that the pinned package versions in requirements.txt match your environment, since the notebooks reflect Python 3.5 era dependencies.

Frequently asked questions

Is the Python Data Science Handbook free?

Yes. The repository contains the entire book as free Jupyter notebooks, and you can also read it online at the project's own site. The readme separately invites you to buy the printed edition through the technical publisher. The code is MIT licensed; the text is under a Creative Commons attribution, non-commercial, no-derivatives licence.

Is the Python Data Science Handbook for beginners?

Not at the language level. The readme states that familiarity with Python as a language is assumed, and points anyone needing a quick introduction to a separate free companion project aimed at researchers and scientists. It is a book about the scientific libraries for someone who can already write Python.

Is there a PDF version of the data science Python book available?

The repository ships the book as Jupyter notebooks rather than a PDF, and the readme points at a notebooks directory and at an index notebook serving as the table of contents. It also links to hosted notebook services so the examples can be run without installing anything, and to the printed edition sold through the technical publisher.

What is the best book for learning Python for data science?

This handbook covers the interactive shell, the array library, the dataframe library, the plotting library and the machine learning library, and its readme links to a separate free project as a language introduction. The trade is that it was written and tested against Python 3.5 with library versions from 2016, so it explains those libraries well and tracks nothing newer.

Official sources

  1. Official documentation
  2. Official README
  3. Project repository
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/jakevdp-pythondatasciencehandbook.svg)](https://hysenlabs.com/projects/jakevdp-pythondatasciencehandbook)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/jakevdp-pythondatasciencehandbook.svg)](https://hysenlabs.com/projects/jakevdp-pythondatasciencehandbook)

Was this useful?