Skip to content

Commit acd6207

Browse files
committed
Merge pull request #5907 from unutbu/cookbook
DOC: Add "How to reduce a sequence (e.g. of Series) using a binary opera...
2 parents c608406 + 95afdc0 commit acd6207

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

doc/source/cookbook.rst

+13-9
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
Cookbook
2121
********
2222

23-
This is a respository for *short and sweet* examples and links for useful pandas recipes.
23+
This is a repository for *short and sweet* examples and links for useful pandas recipes.
2424
We encourage users to add to this documentation.
2525

2626
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``
4545
`How to select from a frame with complex criteria?
4646
<http://stackoverflow.com/questions/15315452/selecting-with-complex-criteria-from-pandas-dataframe>`__
4747

48-
`Select rows closest to a user defined numer
48+
`Select rows closest to a user-defined number
4949
<http://stackoverflow.com/questions/17758023/return-rows-in-a-dataframe-closest-to-a-user-defined-number>`__
5050

51+
`How to reduce a sequence (e.g. of Series) using a binary operator
52+
<http://stackoverflow.com/questions/21058254/pandas-boolean-operation-in-a-python-list/21058331>`__
53+
54+
5155
.. _cookbook.selection:
5256

5357
Selection
@@ -90,7 +94,7 @@ The :ref:`multindexing <indexing.hierarchical>` docs.
9094
Arithmetic
9195
~~~~~~~~~~
9296

93-
`Performing arithmetic with a multi-index that needs broadcastin
97+
`Performing arithmetic with a multi-index that needs broadcasting
9498
<http://stackoverflow.com/questions/19501510/divide-entire-pandas-multiindex-dataframe-by-dataframe-variable/19502176#19502176>`__
9599

96100
Slicing
@@ -221,7 +225,7 @@ The :ref:`Pivot <reshaping.pivot>` docs.
221225
Apply
222226
~~~~~
223227

224-
`Turning embeded lists into a multi-index frame
228+
`Turning embedded lists into a multi-index frame
225229
<http://stackoverflow.com/questions/17349981/converting-pandas-dataframe-with-categorical-values-into-binary-values>`__
226230

227231
`Rolling apply with a DataFrame returning a Series
@@ -242,8 +246,8 @@ Timeseries
242246
`Vectorized Lookup
243247
<http://stackoverflow.com/questions/13893227/vectorized-look-up-of-values-in-pandas-dataframe>`__
244248

245-
Turn a matrix with hours in columns and days in rows into a continous row sequence in the form of a time series.
246-
`How to rearrange a python pandas dataframe?
249+
Turn a matrix with hours in columns and days in rows into a continuous row sequence in the form of a time series.
250+
`How to rearrange a python pandas DataFrame?
247251
<http://stackoverflow.com/questions/15432659/how-to-rearrange-a-python-pandas-dataframe>`__
248252

249253
.. _cookbook.resample:
@@ -354,7 +358,7 @@ The :ref:`CSV <io.read_csv_table>` docs
354358
`Reading the first few lines of a frame
355359
<http://stackoverflow.com/questions/15008970/way-to-read-first-few-lines-for-pandas-dataframe>`__
356360

357-
Reading a file that is compressed but not by ``gzip/bz2`` (the native compresed formats which ``read_csv`` understands).
361+
Reading a file that is compressed but not by ``gzip/bz2`` (the native compressed formats which ``read_csv`` understands).
358362
This example shows a ``WinZipped`` file, but is a general application of opening the file within a context manager and
359363
using that handle to read.
360364
`See here
@@ -410,13 +414,13 @@ The :ref:`HDFStores <io.hdf5>` docs
410414
`Simple Queries with a Timestamp Index
411415
<http://stackoverflow.com/questions/13926089/selecting-columns-from-pandas-hdfstore-table>`__
412416

413-
`Managing heteregenous data using a linked multiple table hierarchy
417+
`Managing heterogeneous data using a linked multiple table hierarchy
414418
<http://github.com/pydata/pandas/issues/3032>`__
415419

416420
`Merging on-disk tables with millions of rows
417421
<http://stackoverflow.com/questions/14614512/merging-two-tables-with-millions-of-rows-in-python/14617925#14617925>`__
418422

419-
Deduplicating a large store by chunks, essentially a recusive reduction operation. Shows a function for taking in data from
423+
Deduplicating a large store by chunks, essentially a recursive reduction operation. Shows a function for taking in data from
420424
csv file and creating a store by chunks, with date parsing as well.
421425
`See here
422426
<http://stackoverflow.com/questions/16110252/need-to-compare-very-large-files-around-1-5gb-in-python/16110391#16110391>`__

0 commit comments

Comments
 (0)