Skip to content

Commit ba9c83e

Browse files
committed
DOC: added cookbook.rst to main docs
1 parent a79f08c commit ba9c83e

File tree

4 files changed

+64
-0
lines changed

4 files changed

+64
-0
lines changed

RELEASE.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ pandas 0.11.0
3030
**New features**
3131

3232
- New documentation section, ``10 Minutes to Pandas``
33+
- New documentation section, ``Cookbook``
3334
- Allow mixed dtypes (e.g ``float32/float64/int32/int16/int8``) to coexist in
3435
DataFrames and propogate in operations
3536
- Add function to pandas.io.data for retrieving stock index components from

doc/source/cookbook.rst

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
.. _cookbook:
2+
3+
.. currentmodule:: pandas
4+
5+
.. ipython:: python
6+
:suppress:
7+
8+
import numpy as np
9+
import random
10+
import os
11+
np.random.seed(123456)
12+
from pandas import *
13+
import pandas as pd
14+
randn = np.random.randn
15+
randint = np.random.randint
16+
np.set_printoptions(precision=4, suppress=True)
17+
18+
********
19+
Cookbook
20+
********
21+
22+
This is a respository for *short and sweet* example and links for useful pandas recipes.
23+
We encourage users to add to this documentation. This is a great *First Pull Request*.
24+
25+
Selection
26+
---------
27+
28+
`Extending a panel along the minor axis
29+
<http://stackoverflow.com/questions/15364050/extending-a-pandas-panel-frame-along-the-minor-axis>`__
30+
31+
Grouping
32+
--------
33+
34+
`Basic grouping with apply
35+
<http://stackoverflow.com/questions/15322632/python-pandas-df-groupy-agg-column-reference-in-agg>`__
36+
37+
`TimeGrouping of values grouped across time
38+
<http://stackoverflow.com/questions/15297053/how-can-i-divide-single-values-of-a-dataframe-by-monthly-averages>`__
39+
40+
Merge
41+
-----
42+
43+
Join
44+
~~~~
45+
46+
`Joining a DataFrame to itself
47+
<https://github.com/pydata/pandas/issues/2996>`__
48+
49+
Data In/Out
50+
-----------
51+
52+
CSV
53+
~~~
54+
55+
HDF5
56+
~~~~
57+
58+
Managing heteregenous data using a linked multiple table hierarchy.
59+
See `here <https://github.com/pydata/pandas/issues/3032>`__.

doc/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ See the package overview for more detail about what's in the library.
113113
faq
114114
overview
115115
10min
116+
cookbook
116117
dsintro
117118
basics
118119
indexing

doc/source/v0.11.0.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ pay close attention to.
1212
There is a new section in the documentation, :ref:`10 Minutes to Pandas <10min>`,
1313
primarily geared to new users.
1414

15+
There is a new section in the documentation, :ref:`Cookbook <cookbook>`, a collection
16+
of useful recipes in pandas (and that we want contributions!).
17+
1518
There are several libraries that are now :ref:`Recommended Dependencies <install.recommended_dependencies>`
1619

1720
Selection Choices

0 commit comments

Comments
 (0)