Skip to content

Commit 0b65a7a

Browse files
update wording
1 parent 656ec44 commit 0b65a7a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

doc/source/io.rst

+4-5
Original file line numberDiff line numberDiff line change
@@ -2507,16 +2507,15 @@ indices to be parsed.
25072507
Parsing Dates
25082508
+++++++++++++
25092509
2510-
Datetime-like values are automatically converted to the appropriate dtype when
2511-
reading the excel file. When there is a column of strings that have to be parsed
2512-
to a datetime, you can use the `parse_dates` keyword:
2510+
Datetime-like values are normally automatically converted to the appropriate
2511+
dtype when reading the excel file. But if you have a column of strings that
2512+
*look* like dates (but are not actually formatted as dates in excel), you can
2513+
use the `parse_dates` keyword to parse those strings to datetimes:
25132514
25142515
.. code-block:: python
25152516
25162517
read_excel('path_to_file.xls', 'Sheet1', parse_dates=['date_strings'])
25172518
2518-
So this should *not* be used when the column in excel has already a datetime-like
2519-
type.
25202519
25212520
Cell Converters
25222521
+++++++++++++++

0 commit comments

Comments
 (0)