Repository navigation
Commit 064eabb
committed
Refactor datetime column inference in parse_datetime_columns function
- Updated the condition for identifying string columns in the `parse_datetime_columns` function to use `pd.api.types.is_string_dtype` instead of checking for the "object" dtype. This change improves the accuracy of datetime column inference by leveraging pandas' type checking capabilities.
These modifications enhance the robustness of the datetime parsing logic in the dataframe utilities.1 parent fef49cc commit 064eabb
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
0 commit comments