Skip to content

Commit 010f7a4

Browse files
committed
DOC: cookbook updates - added idiom section
1 parent c4a218c commit 010f7a4

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

doc/source/10min.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
********************
2828

2929
This is a short introduction to pandas, geared mainly for new users.
30+
You can see more complex recipes in the :ref:`Cookbook<cookbook>`
3031

3132
Customarily, we import as follows
3233

doc/source/cookbook.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,22 @@ We encourage users to add to this documentation.
2525
This is a great *First Pull Request* (to add interesting links and/or put short code inline
2626
for existing links)
2727

28+
Idioms
29+
------
30+
31+
.. _cookbook.idioms:
32+
33+
These are some neat pandas ``idioms``
34+
35+
`How to do if-then-else?
36+
<http://stackoverflow.com/questions/17128302/python-pandas-idiom-for-if-then-else>`__
37+
38+
`How to split a frame with a boolean criterion?
39+
<http://stackoverflow.com/questions/14957116/how-to-split-a-dataframe-according-to-a-boolean-criterion>`__
40+
41+
`How to select from a frame with complex criteria?
42+
<http://stackoverflow.com/questions/15315452/selecting-with-complex-criteria-from-pandas-dataframe>`__
43+
2844
.. _cookbook.selection:
2945

3046
Selection
@@ -189,6 +205,9 @@ The :ref:`Resample <timeseries.resampling>` docs.
189205
`TimeGrouping #2
190206
<http://stackoverflow.com/questions/14569223/timegrouper-pandas>`__
191207

208+
`Using TimeGrouper and another grouping to create subgroups, then apply a custom function
209+
<https://github.com/pydata/pandas/issues/3791>`__
210+
192211
`Resampling with custom periods
193212
<http://stackoverflow.com/questions/15408156/resampling-with-custom-periods>`__
194213

@@ -258,6 +277,9 @@ The :ref:`CSV <io.read_csv_table>` docs
258277
`read_csv in action
259278
<http://wesmckinney.com/blog/?p=635>`__
260279

280+
`appending to a csv
281+
<http://stackoverflow.com/questions/17134942/pandas-dataframe-output-end-of-csv>`__
282+
261283
`Reading a csv chunk-by-chunk
262284
<http://stackoverflow.com/questions/11622652/large-persistent-dataframe-in-pandas/12193309#12193309>`__
263285

0 commit comments

Comments
 (0)