Pandas Cookbook

Recipes for using Python's pandas library
Alternatives To Pandas Cookbook
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Pandas Cookbook6,068
2 months ago32Jupyter Notebook
Recipes for using Python's pandas library
Pandas Cookbook596
5 months ago6mitJupyter Notebook
Pandas Cookbook, published by Packt
Pandas Cookbook Second Edition234
4 months ago6mitJupyter Notebook
Pandas Cookbook Second Edition, published by Packt
Matplotlib 3.0 Cookbook109
4 months ago1mitJupyter Notebook
Matplotlib 3.0 Cookbook, published by Packt
Financial Analysis Using Python10
3 years agoJupyter Notebook
Cookbook of iPython Notebook Recipes
Data Engineering9
a year agomit
Common data manipulations in different languages and frameworks.
Howtos5
2 years agoJupyter Notebook
How-To Recipes, 碎片化实用教程, 开发技巧
Pydata Cookbook4
5 years agoJupyter Notebook
blaze, odo, pandas, numpy
Dand_vip_class3
3 years ago
Udacity-DAND-VIP入门课程 每周导学及项目
My Little Pandas Cookbook3
a year agoJupyter Notebook
Alternatives To Pandas Cookbook
Select To Compare


Alternative Project Comparisons
Readme

Pandas cookbook

Binder

pandas is a Python library for doing data analysis. It's really fast and lets you do exploratory work incredibly quickly.

The goal of this cookbook is to give you some concrete examples for getting started with pandas. The docs are really comprehensive. However, I've often had people tell me that they have some trouble getting started, so these are examples with real-world data, and all the bugs and weirdness that entails.

It uses 3 datasets:

  • 311 calls in New York
  • How many people were on Montréal's bike paths in 2012
  • Montreal's weather for 2012, hourly

It comes with batteries (data) included, so you can try out all the examples right away.

Table of Contents

How to use this cookbook

The easiest way is to try it out instantly online using Binder's awesome service. Start by clicking here, wait for it to launch, then click on "cookbook", and you'll be off to the races! It will let you run all the code interactively without having to install anything on your computer.

To install it locally, you'll need Jupyter notebook and pandas on your computer.

You can get these using pip (you may want to do this inside a virtual environment to avoid conflicting with your other libraries).

  pip install -r requirements.txt

This can be difficult to get set up and require you to compile a whole bunch of things. I instead use and recommend Anaconda, which is a Python distribution which will give you everything you need. It's free and open source.

Once you have pandas and Jupyter, you can get going!

git clone https://github.com/jvns/pandas-cookbook.git
cd pandas-cookbook/cookbook
jupyter notebook

A tab should open up in your browser at http://localhost:8888

Happy pandas!

Running the cookbook inside a Docker container.

This repository contains a Dockerfile and can be built into a docker container. To build the container run following command from inside of the repository directory:

docker build -t jvns/pandas-cookbook -f Dockerfile-Local .

run the container:

docker run -d -p 8888:8888 -e "PASSWORD=MakeAPassword" <IMAGE ID>

you can find out about the id of the image, by checking

docker images

After starting the container, you can access the Jupyter notebook with the cookbook on port 8888.

License

Creative Commons License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License

Translations

There's a translation into Chinese of this repo.

Popular Pandas Projects
Popular Cookbook Projects
Popular Data Processing Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Jupyter Notebook
Pandas
Cookbook
Ipython