File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -3168,15 +3168,21 @@ def converter(*date_cols):
3168
3168
box = False ,
3169
3169
dayfirst = dayfirst ,
3170
3170
errors = 'ignore' ,
3171
- infer_datetime_format = infer_datetime_format
3171
+ infer_datetime_format = infer_datetime_format ,
3172
+ cache = True
3172
3173
)
3173
3174
except ValueError :
3174
3175
return tools .to_datetime (
3175
- parsing .try_parse_dates (strs , dayfirst = dayfirst ))
3176
+ parsing .try_parse_dates (strs , dayfirst = dayfirst ),
3177
+ cache = True
3178
+ )
3176
3179
else :
3177
3180
try :
3178
3181
result = tools .to_datetime (
3179
- date_parser (* date_cols ), errors = 'ignore' )
3182
+ date_parser (* date_cols ),
3183
+ errors = 'ignore' ,
3184
+ cache = True
3185
+ )
3180
3186
if isinstance (result , datetime .datetime ):
3181
3187
raise Exception ('scalar parser' )
3182
3188
return result
@@ -3186,7 +3192,9 @@ def converter(*date_cols):
3186
3192
parsing .try_parse_dates (_concat_date_cols (date_cols ),
3187
3193
parser = date_parser ,
3188
3194
dayfirst = dayfirst ),
3189
- errors = 'ignore' )
3195
+ errors = 'ignore' ,
3196
+ cache = True
3197
+ )
3190
3198
except Exception :
3191
3199
return generic_parser (date_parser , * date_cols )
3192
3200
You can’t perform that action at this time.
0 commit comments