Skip to content

Commit 89d4871

Browse files
author
Fabio Zanini
committed
docs fix (?)
1 parent d0597b8 commit 89d4871

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

doc/source/io.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1995,10 +1995,7 @@ indices to be parsed.
19951995
.. note::
19961996

19971997
It is possible to transform the contents of Excel cells via the `converters`
1998-
option. It accepts a dictionary of functions: the keys are the names or
1999-
indices of columns to be transformed, the values are functions that take one
2000-
input argument, the Excel cell content, and return the transformed content.
2001-
For instance, to convert a column to boolean:
1998+
option. For instance, to convert a column to boolean:
20021999

20032000
.. code-block:: python
20042001

pandas/io/excel.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ def read_excel(io, sheetname=0, **kwds):
8585
Rows at the end to skip (0-indexed)
8686
converters : dict, default None
8787
Dict of functions for converting values in certain columns. Keys can
88-
either be integers or column labels
88+
either be integers or column labels, values are functions that take one
89+
input argument, the Excel cell content, and return the transformed
90+
content.
8991
index_col : int, default None
9092
Column to use as the row labels of the DataFrame. Pass None if
9193
there is no such column

pandas/io/parsers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,6 +1274,11 @@ def TextParser(*args, **kwds):
12741274
Row numbers to skip
12751275
skip_footer : int
12761276
Number of line at bottom of file to skip
1277+
converters : dict, default None
1278+
Dict of functions for converting values in certain columns. Keys can
1279+
either be integers or column labels, values are functions that take one
1280+
input argument, the cell (not column) content, and return the
1281+
transformed content.
12771282
encoding : string, default None
12781283
Encoding to use for UTF when reading/writing (ex. 'utf-8')
12791284
squeeze : boolean, default False

0 commit comments

Comments
 (0)