Skip to content

Commit 58ee1fb

Browse files
committed
Merge pull request #5842 from jvns/patch-1
Add pandas cookbook to tutorials (for #5837)
2 parents fc9d021 + 3adb0d0 commit 58ee1fb

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

doc/source/tutorials.rst

+40
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,43 @@ More complex recipes are in the :ref:`Cookbook<cookbook>`
1616
Tutorials
1717
---------
1818

19+
20+
Pandas Cookbook
21+
---------------
22+
23+
The goal of this cookbook (by `Julia Evans <http://jvns.ca>`_) is to
24+
give you some concrete examples for getting started with pandas. These
25+
are examples with real-world data, and all the bugs and weirdness that
26+
that entails.
27+
28+
Here are links to the v0.1 release. For an up-to-date table of contents, see the `pandas-cookbook GitHub
29+
repository <http://github.com/jvns/pandas-cookbook>`_.
30+
31+
* | `A quick tour of the IPython
32+
Notebook <http://nbviewer.ipython.org/github/jvns/pandas-c|%2055ookbook/blob/v0.1/cookbook/A%20quick%20tour%20of%20IPython%20Notebook.ipynb>`_
33+
| Shows off IPython's awesome tab completion and magic functions.
34+
* | `Chapter 1: <http://nbviewer.ipython.org/github/jvns/pandas-cookbook/blob/v0.1/cookbook/Chapter%201%20-%20Reading%20from%20a%20CSV.ipynb>`_
35+
Reading your data into pandas is pretty much the easiest thing. Even
36+
when the encoding is wrong!
37+
* | `Chapter 2: <http://nbviewer.ipython.org/github/jvns/pandas-cookbook/blob/v0.1/cookbook/Chapter%202%20-%20Selecting%20data%20&%20finding%20the%20most%20common%20complaint%20type.ipynb>`_
38+
It's not totally obvious how to select data from a pandas dataframe.
39+
Here we explain the basics (how to take slices and get columns)
40+
* | `Chapter 3: <http://nbviewer.ipython.org/github/jvns/pandas-cookbook/blob/v0.1/cookbook/Chapter%203%20-%20Which%20borough%20has%20the%20most%20noise%20complaints%3F%20%28or%2C%20more%20selecting%20data%29.ipynb>`_
41+
Here we get into serious slicing and dicing and learn how to filter
42+
dataframes in complicated ways, really fast.
43+
* | `Chapter 4: <http://nbviewer.ipython.org/github/jvns/pandas-cookbook/blob/v0.1/cookbook/Chapter%204%20-%20Find%20out%20on%20which%20weekday%20people%20bike%20the%20most%20with%20groupby%20and%20aggregate.ipynb>`_
44+
Groupby/aggregate is seriously my favorite thing about pandas
45+
and I use it all the time. You should probably read this.
46+
* | `Chapter 5: <http://nbviewer.ipython.org/github/jvns/pandas-cookbook/blob/v0.1/cookbook/Chapter%205%20-%20Combining%20dataframes%20and%20scraping%20Canadian%20weather%20data.ipynb>`_
47+
Here you get to find out if it's cold in Montreal in the winter
48+
(spoiler: yes). Web scraping with pandas is fun! Here we combine dataframes.
49+
* | `Chapter 6: <http://nbviewer.ipython.org/github/jvns/pandas-cookbook/blob/v0.1/cookbook/Chapter%206%20-%20String%20operations%21%20Which%20month%20was%20the%20snowiest%3F.ipynb>`_
50+
Strings with pandas are great. It has all these vectorized string
51+
operations and they're the best. We will turn a bunch of strings
52+
containing "Snow" into vectors of numbers in a trice.
53+
* | `Chapter 7: <http://nbviewer.ipython.org/github/jvns/pandas-cookbook/blob/v0.1/cookbook/Chapter%207%20-%20Cleaning%20up%20messy%20data.ipynb>`_
54+
Cleaning up messy data is never a joy, but with pandas it's easier.
55+
* | `Chapter 8: <http://nbviewer.ipython.org/github/jvns/pandas-cookbook/blob/v0.1/cookbook/Chapter%208%20-%20How%20to%20deal%20with%20timestamps.ipynb>`_
56+
Parsing Unix timestamps is confusing at first but it turns out
57+
to be really easy.
58+

0 commit comments

Comments
 (0)