File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -284,14 +284,14 @@ def _stata_elapsed_date_to_datetime_vec(dates: Series, fmt: str) -> Series:
284
284
if fmt .startswith (("%tc" , "tc" )):
285
285
# Delta ms relative to base
286
286
td = np .timedelta64 (stata_epoch - unix_epoch , "ms" )
287
- conv_dates = np .array (dates ._values , dtype = "M8[ms]" ) + td
288
- return Series (conv_dates , index = dates .index )
287
+ res = np .array (dates ._values , dtype = "M8[ms]" ) + td
288
+ return Series (res , index = dates .index )
289
289
290
290
elif fmt .startswith (("%td" , "td" , "%d" , "d" )):
291
291
# Delta days relative to base
292
292
td = np .timedelta64 (stata_epoch - unix_epoch , "D" )
293
- conv_dates = np .array (dates ._values , dtype = "M8[D]" ) + td
294
- return Series (conv_dates , index = dates .index )
293
+ res = np .array (dates ._values , dtype = "M8[D]" ) + td
294
+ return Series (res , index = dates .index )
295
295
296
296
elif fmt .startswith (("%tm" , "tm" )):
297
297
# Delta months relative to base
You can’t perform that action at this time.
0 commit comments