Skip to content

Commit f9598b9

Browse files
committed
mypy fixup
1 parent fec9cc2 commit f9598b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/io/stata.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,14 +284,14 @@ def _stata_elapsed_date_to_datetime_vec(dates: Series, fmt: str) -> Series:
284284
if fmt.startswith(("%tc", "tc")):
285285
# Delta ms relative to base
286286
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)
289289

290290
elif fmt.startswith(("%td", "td", "%d", "d")):
291291
# Delta days relative to base
292292
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)
295295

296296
elif fmt.startswith(("%tm", "tm")):
297297
# Delta months relative to base

0 commit comments

Comments
 (0)