File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -2507,16 +2507,15 @@ indices to be parsed.
2507
2507
Parsing Dates
2508
2508
++++++++++++ +
2509
2509
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:
2513
2514
2514
2515
.. code- block:: python
2515
2516
2516
2517
read_excel(' path_to_file.xls' , ' Sheet1' , parse_dates = [' date_strings' ])
2517
2518
2518
- So this should * not * be used when the column in excel has already a datetime- like
2519
- type .
2520
2519
2521
2520
Cell Converters
2522
2521
++++++++++++++ +
You can’t perform that action at this time.
0 commit comments