Skip to content

Commit d0438a2

Browse files
committed
Merge pull request #5211 from guyrt/issue-4355-usecols-python-engine
ENH: Add usecols option to python parser.
2 parents de04269 + 4038cfb commit d0438a2

File tree

4 files changed

+209
-140
lines changed

4 files changed

+209
-140
lines changed

doc/source/io.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ They can take a number of arguments:
8585
ways to specify the file format
8686
- ``dtype``: A data type name or a dict of column name to data type. If not
8787
specified, data types will be inferred.
88-
- ``header``: row number to use as the column names, and the start of the
88+
- ``header``: row number(s) to use as the column names, and the start of the
8989
data. Defaults to 0 if no ``names`` passed, otherwise ``None``. Explicitly
9090
pass ``header=0`` to be able to replace existing names. The header can be
9191
a list of integers that specify row locations for a multi-index on the columns
92-
E.g. [0,1,3]. Interveaning rows that are not specified will be skipped.
92+
E.g. [0,1,3]. Intervening rows that are not specified will be skipped.
9393
(E.g. 2 in this example are skipped)
9494
- ``skiprows``: A collection of numbers for rows in the file to skip. Can
9595
also be an integer to skip the first ``n`` rows
@@ -2938,7 +2938,7 @@ into BigQuery and pull it into a DataFrame.
29382938
.. code-block:: python
29392939
29402940
from pandas.io import gbq
2941-
2941+
29422942
# Insert your BigQuery Project ID Here
29432943
# Can be found in the web console, or
29442944
# using the command line tool `bq ls`
@@ -2998,7 +2998,7 @@ To add more rows to this, simply:
29982998

29992999
To use this module, you will need a BigQuery account. See
30003000
<https://cloud.google.com/products/big-query> for details.
3001-
3001+
30023002
As of 10/10/13, there is a bug in Google's API preventing result sets
30033003
from being larger than 100,000 rows. A patch is scheduled for the week of
30043004
10/14/13.

doc/source/v0.13.0.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -505,11 +505,13 @@ Enhancements
505505
- :meth:`~pandas.io.json.json_normalize` is a new method to allow you to create a flat table
506506
from semi-structured JSON data. See :ref:`the docs<io.json_normalize>` (:issue:`1067`)
507507

508-
509508
- Added PySide support for the qtpandas DataFrameModel and DataFrameWidget.
510509

510+
- Python csv parser now supports usecols (:issue:`4335`)
511+
511512
- DataFrame has a new ``interpolate`` method, similar to Series (:issue:`4434`, :issue:`1892`)
512513

514+
513515
.. ipython:: python
514516

515517
df = DataFrame({'A': [1, 2.1, np.nan, 4.7, 5.6, 6.8],

0 commit comments

Comments
 (0)