Skip to content

Commit b6d07b4

Browse files
committed
coerce parsed datetime to ns resolution
1 parent 4fde946 commit b6d07b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/parsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2154,7 +2154,7 @@ def _try_convert_dates(parser, colspec, data_dict, columns):
21542154
new_name = '_'.join([str(x) for x in colnames])
21552155
to_parse = [data_dict[c] for c in colnames if c in data_dict]
21562156

2157-
new_col = parser(*to_parse)
2157+
new_col = parser(*to_parse).astype('datetime64[ns]')
21582158
return new_name, new_col, colnames
21592159

21602160

0 commit comments

Comments
 (0)