Jupyter Notebooks for the Python Data Science Handbook
Jupyter Notebook
Latest commit 482a914 Jan 11, 2017 @jakevdp committed on GitHub Merge pull request #33 from evolvah/master
Minor consistency fix for OCD-inclined readers


Python Data Science Handbook

This repository contains entire Python Data Science Handbook, in the form of (free!) Jupyter notebooks.

cover image

This repository contains the full listing of IPython notebooks behind the Python Data Science Handbook, including all text, code, and figures. The book was written and tested with Python 3.5, though older Python versions (including Python 2.7) should work in nearly all cases.

The book introduces the core libraries essential for working with data in Python: particularly IPython, NumPy, Pandas, Matplotlib, Scikit-Learn, and related packages. Familiarity with Python as a language is assumed; if you need a quick introduction to the language itself, see the free companion project, A Whirlwind Tour of Python: it's a fast-paced introduction to the Python language aimed at researchers and scientists.

The following listing links to the notebooks in this repository, rendered through the nbviewer service:

Table of Contents


1. IPython: Beyond Normal Python

2. Introduction to NumPy

3. Data Manipulation with Pandas

4. Visualization with Matplotlib

5. Machine Learning

Appendix: Figure Code

Required Packages

The code in the book was tested with Python 3.5, though most (but not all) will also work correctly with Python 2.7 and other older Python versions.

The packages required to run the code in the book are listed in requirements.txt. To install these using conda, run the following at the command-line:

$ conda install --file requirements.txt

To create a stand-alone environment named PDSH with Python 3.5 and all the required package versions, run the following:

$ conda create -n PDSH python=3.5 --file requirements.txt

You can read more about using conda environments in the Managing Environments section of the conda documentation.



The code in this repository, including all code samples in the notebooks listed above, is released under the MIT license. Read more at the Open Source Initiative.


The text content of the book is released under the CC-BY-NC-ND license. Read more at Creative Commons.