From 95afdc04d2b9a94da0cbfcfd229e46965261ac2c Mon Sep 17 00:00:00 2001 From: unutbu Date: Sat, 11 Jan 2014 12:38:34 -0500 Subject: [PATCH] DOC: Add "How to reduce a sequence (e.g. of Series) using a binary operator" MAINT: Fixed some typos --- doc/source/cookbook.rst | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/doc/source/cookbook.rst b/doc/source/cookbook.rst index 624a1188f5957..4cbee3e79a2f1 100644 --- a/doc/source/cookbook.rst +++ b/doc/source/cookbook.rst @@ -20,7 +20,7 @@ Cookbook ******** -This is a respository for *short and sweet* examples and links for useful pandas recipes. +This is a repository for *short and sweet* examples and links for useful pandas recipes. We encourage users to add to this documentation. This is a great *First Pull Request* (to add interesting links and/or put short code inline @@ -45,9 +45,13 @@ These are some neat pandas ``idioms`` `How to select from a frame with complex criteria? `__ -`Select rows closest to a user defined numer +`Select rows closest to a user-defined number `__ +`How to reduce a sequence (e.g. of Series) using a binary operator +`__ + + .. _cookbook.selection: Selection @@ -90,7 +94,7 @@ The :ref:`multindexing ` docs. Arithmetic ~~~~~~~~~~ -`Performing arithmetic with a multi-index that needs broadcastin +`Performing arithmetic with a multi-index that needs broadcasting `__ Slicing @@ -221,7 +225,7 @@ The :ref:`Pivot ` docs. Apply ~~~~~ -`Turning embeded lists into a multi-index frame +`Turning embedded lists into a multi-index frame `__ `Rolling apply with a DataFrame returning a Series @@ -242,8 +246,8 @@ Timeseries `Vectorized Lookup `__ -Turn a matrix with hours in columns and days in rows into a continous row sequence in the form of a time series. -`How to rearrange a python pandas dataframe? +Turn a matrix with hours in columns and days in rows into a continuous row sequence in the form of a time series. +`How to rearrange a python pandas DataFrame? `__ .. _cookbook.resample: @@ -354,7 +358,7 @@ The :ref:`CSV ` docs `Reading the first few lines of a frame `__ -Reading a file that is compressed but not by ``gzip/bz2`` (the native compresed formats which ``read_csv`` understands). +Reading a file that is compressed but not by ``gzip/bz2`` (the native compressed formats which ``read_csv`` understands). This example shows a ``WinZipped`` file, but is a general application of opening the file within a context manager and using that handle to read. `See here @@ -410,13 +414,13 @@ The :ref:`HDFStores ` docs `Simple Queries with a Timestamp Index `__ -`Managing heteregenous data using a linked multiple table hierarchy +`Managing heterogeneous data using a linked multiple table hierarchy `__ `Merging on-disk tables with millions of rows `__ -Deduplicating a large store by chunks, essentially a recusive reduction operation. Shows a function for taking in data from +Deduplicating a large store by chunks, essentially a recursive reduction operation. Shows a function for taking in data from csv file and creating a store by chunks, with date parsing as well. `See here `__