Skip to content

Commit

Permalink
Clarify dtype parameter in read_excel (#55757)
Browse files Browse the repository at this point in the history
Fix #55489
  • Loading branch information
gadeatric authored Oct 30, 2023
1 parent 192a4e3 commit a4aa699
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pandas/io/excel/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,11 @@
Returns a subset of the columns according to behavior above.
dtype : Type name or dict of column -> type, default None
Data type for data or columns. E.g. {{'a': np.float64, 'b': np.int32}}
Use `object` to preserve data as stored in Excel and not interpret dtype.
Use `object` to preserve data as stored in Excel and not interpret dtype,
which will necessarily result in `object` dtype.
If converters are specified, they will be applied INSTEAD
of dtype conversion.
If you use `None`, it will infer the dtype of each column based on the data.
engine : str, default None
If io is not a buffer or path, this must be set to identify io.
Supported engines: "xlrd", "openpyxl", "odf", "pyxlsb", "calamine".
Expand Down

0 comments on commit a4aa699

Please sign in to comment.