Jupyter notebooks, data and supplementary material for the third edition of the Think Stats statistics textbook, built around Python and pandas.
jakevdp/PythonDataScienceHandbook
Free Jupyter notebooks that make up the full text of the Python Data Science Handbook, covering NumPy, Pandas, Matplotlib and Scikit-Learn.
- Stars
- 50,390
- Forks
- 19,164
- Open issues
- 226
- Last commit
- 2 years ago
What is it?
This repository holds the complete text of the Python Data Science Handbook as runnable Jupyter notebooks. The book introduces the core Python libraries used for working with data, including IPython, NumPy, Pandas, Matplotlib and Scikit-Learn, along with related packages.
The notebooks can be read online as a website, run locally from the notebooks directory, or opened directly in Google Colab or Binder without a local setup. Familiarity with Python as a language is assumed; a companion project, A Whirlwind Tour of Python, covers the language basics.
The code was written and tested with Python 3.5, and most of it should also work on Python 2.7 and other older versions. A requirements file lists the packages used, and conda environment instructions are included. The code is MIT-licensed and the text is under CC-BY-NC-ND.
Key features
- 01Full book content in Jupyter notebook format
- 02Covers IPython, NumPy, Pandas, Matplotlib and Scikit-Learn
- 03Runnable in Google Colab or Binder without local setup
- 04Includes a requirements file and conda environment instructions
- 05Online version available as a website
Use cases
- Learning NumPy, Pandas and Matplotlib hands-on with runnable examples
- Working through machine learning basics with Scikit-Learn
- Teaching a data science course using executable notebooks
Quick start
- 1
Read the book online without installing anything
- 2
Install the required packages with conda using the README's requirements file
conda install --file requirements.txt - 3
Or create a dedicated conda environment named PDSH with Python 3.5
conda create -n PDSH python=3.5 --file requirements.txt - 4
Open the notebooks in the notebooks directory, or launch them in Google Colab or Binder
Things to know
- The code was tested with Python 3.5, and the pinned package versions may not install on newer platforms.
- The text is licensed CC-BY-NC-ND, so it cannot be used commercially or remixed.
In collections
Topics
FAQ
- What is PythonDataScienceHandbook?
- Free Jupyter notebooks that make up the full text of the Python Data Science Handbook, covering NumPy, Pandas, Matplotlib and Scikit-Learn. This repository holds the complete text of the Python Data Science Handbook as runnable Jupyter notebooks. The book introduces the core Python libraries used for working with data, including IPython, NumPy, Pandas, Matplotlib and Scikit-Learn, along with related packages.
- Is PythonDataScienceHandbook free to use? What license does it have?
- PythonDataScienceHandbook is open source under the MIT license. Check the license terms before using it in commercial products.
- Is PythonDataScienceHandbook still maintained?
- No commits for 6+ months. The last commit to PythonDataScienceHandbook was on Jun 26, 2024.
- What can I use PythonDataScienceHandbook for?
- Learning NumPy, Pandas and Matplotlib hands-on with runnable examples Working through machine learning basics with Scikit-Learn Teaching a data science course using executable notebooks
- How do I install PythonDataScienceHandbook?
- Read the book online without installing anything Install the required packages with conda using the README's requirements file: conda install --file requirements.txt Or create a dedicated conda environment named PDSH with Python 3.5: conda create -n PDSH python=3.5 --file requirements.txt Open the notebooks in the notebooks directory, or launch them in Google Colab or Binder
- Where can I get PythonDataScienceHandbook?
- The source code and installation instructions are on GitHub: https://github.com/jakevdp/PythonDataScienceHandbook
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A minimal Python library that draws customized map artwork from OpenStreetMap data using osmnx, matplotlib and shapely.
A Python library that turns pandas, polars, or pyarrow dataframes into an interactive drag-and-drop visual analysis UI inside Jupyter.
A 12-week, 26-lesson beginner curriculum on classic machine learning using Scikit-learn, with Python and R lessons and quizzes.
Example Jupyter notebooks for backtesting and developing algorithmic trading strategies on DEX, DeFi and Binance CEX data with the Trading Strategy SDK.
A set of 100 NumPy exercises with solutions, aimed at learning and quick reference for Python array computing.