Skip to content

Commit 531d32a

Browse files
committed
DOC: more cookbook examples
1 parent 4f9e260 commit 531d32a

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

doc/source/conf.py

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
# add these directories to sys.path here. If the directory is relative to the
1818
# documentation root, use os.path.abspath to make it absolute, like shown here.
1919
# sys.path.append(os.path.abspath('.'))
20-
2120
sys.path.insert(0, os.path.abspath('../sphinxext'))
2221

2322
sys.path.extend([

doc/source/cookbook.rst

+22
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ Splitting
127127
`Splitting a frame
128128
<http://stackoverflow.com/questions/13353233/best-way-to-split-a-dataframe-given-an-edge/15449992#15449992>`__
129129

130+
Pivot
131+
~~~~~
132+
133+
`Partial sums and subtotals
134+
<http://stackoverflow.com/questions/15570099/pandas-pivot-tables-row-subtotals/15574875#15574875>`__
135+
130136
Timeseries
131137
----------
132138

@@ -203,6 +209,9 @@ CSV
203209

204210
The :ref:`CSV <io.read_csv_table>` docs
205211

212+
`read_csv in action
213+
<http://wesmckinney.com/blog/?p=635>`__
214+
206215
`Reading a csv chunk-by-chunk
207216
<http://stackoverflow.com/questions/11622652/large-persistent-dataframe-in-pandas/12193309#12193309>`__
208217

@@ -212,6 +221,9 @@ The :ref:`CSV <io.read_csv_table>` docs
212221
`Inferring dtypes from a file
213222
<http://stackoverflow.com/questions/15555005/get-inferred-dataframe-types-iteratively-using-chunksize>`__
214223

224+
`Dealing with bad lines
225+
<https://github.com/pydata/pandas/issues/2886>`__
226+
215227
.. _cookbook.sql:
216228

217229
SQL
@@ -222,6 +234,16 @@ The :ref:`SQL <io.sql>` docs
222234
`Reading from databases with SQL
223235
<http://stackoverflow.com/questions/10065051/python-pandas-and-databases-like-mysql>`__
224236

237+
.. _cookbook.excel:
238+
239+
Excel
240+
~~~~~
241+
242+
The :ref:`Excel <io.excel>` docs
243+
244+
`Reading from a filelike handle
245+
<http://stackoverflow.com/questions/15588713/sheets-of-excel-workbook-from-a-url-into-a-pandas-dataframe>`__
246+
225247
.. _cookbook.hdf:
226248

227249
HDFStore

doc/source/io.rst

+2
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,8 @@ The ``ExcelFile`` class can read an Excel 2003 file using the ``xlrd`` Python
919919
module and use the same parsing code as the above to convert tabular data into
920920
a DataFrame. To use it, create the ``ExcelFile`` object:
921921

922+
See some :ref:`cookbook examples <cookbook.excel>` for some advanced strategies
923+
922924
.. code-block:: python
923925
924926
xls = ExcelFile('path_to_file.xls')

0 commit comments

Comments
 (0)