Skip to content

Commit a4aa699

Browse files
authored
Clarify dtype parameter in read_excel (#55757)
Fix #55489
1 parent 192a4e3 commit a4aa699

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/io/excel/_base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,11 @@
155155
Returns a subset of the columns according to behavior above.
156156
dtype : Type name or dict of column -> type, default None
157157
Data type for data or columns. E.g. {{'a': np.float64, 'b': np.int32}}
158-
Use `object` to preserve data as stored in Excel and not interpret dtype.
158+
Use `object` to preserve data as stored in Excel and not interpret dtype,
159+
which will necessarily result in `object` dtype.
159160
If converters are specified, they will be applied INSTEAD
160161
of dtype conversion.
162+
If you use `None`, it will infer the dtype of each column based on the data.
161163
engine : str, default None
162164
If io is not a buffer or path, this must be set to identify io.
163165
Supported engines: "xlrd", "openpyxl", "odf", "pyxlsb", "calamine".

0 commit comments

Comments
 (0)