From 531d32a8cd11c5aaf453b14b14b3ddb83f25fa4f Mon Sep 17 00:00:00 2001 From: jreback Date: Sat, 23 Mar 2013 22:04:41 -0400 Subject: [PATCH] DOC: more cookbook examples --- doc/source/conf.py | 1 - doc/source/cookbook.rst | 22 ++++++++++++++++++++++ doc/source/io.rst | 2 ++ 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 3fc0b5751e8d7..76093d83b32e7 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -17,7 +17,6 @@ # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # sys.path.append(os.path.abspath('.')) - sys.path.insert(0, os.path.abspath('../sphinxext')) sys.path.extend([ diff --git a/doc/source/cookbook.rst b/doc/source/cookbook.rst index f5b0c5e1feb5d..1d8701368558f 100644 --- a/doc/source/cookbook.rst +++ b/doc/source/cookbook.rst @@ -127,6 +127,12 @@ Splitting `Splitting a frame `__ +Pivot +~~~~~ + +`Partial sums and subtotals +`__ + Timeseries ---------- @@ -203,6 +209,9 @@ CSV The :ref:`CSV ` docs +`read_csv in action +`__ + `Reading a csv chunk-by-chunk `__ @@ -212,6 +221,9 @@ The :ref:`CSV ` docs `Inferring dtypes from a file `__ +`Dealing with bad lines +`__ + .. _cookbook.sql: SQL @@ -222,6 +234,16 @@ The :ref:`SQL ` docs `Reading from databases with SQL `__ +.. _cookbook.excel: + +Excel +~~~~~ + +The :ref:`Excel ` docs + +`Reading from a filelike handle +`__ + .. _cookbook.hdf: HDFStore diff --git a/doc/source/io.rst b/doc/source/io.rst index e936abd89b8d8..a244b9c545d88 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -919,6 +919,8 @@ The ``ExcelFile`` class can read an Excel 2003 file using the ``xlrd`` Python module and use the same parsing code as the above to convert tabular data into a DataFrame. To use it, create the ``ExcelFile`` object: +See some :ref:`cookbook examples ` for some advanced strategies + .. code-block:: python xls = ExcelFile('path_to_file.xls')