Skip to content

Commit

Permalink
pass address
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd committed Nov 10, 2023
1 parent 7fbd191 commit 4eba919
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pandas/_libs/tslibs/period.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ cdef int64_t period_ordinal_to_dt64(int64_t ordinal, int freq) except? -1:
try:
result = npy_datetimestruct_to_datetime(NPY_DATETIMEUNIT.NPY_FR_ns, &dts)
except OverflowError as err:
fmt = dts_to_iso_string(dts)
fmt = dts_to_iso_string(&dts)
raise OutOfBoundsDatetime(f"Out of bounds nanosecond timestamp: {fmt}") from err

return result
Expand Down
2 changes: 1 addition & 1 deletion pandas/_libs/tslibs/timestamps.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2493,7 +2493,7 @@ default 'raise'
try:
ts.value = npy_datetimestruct_to_datetime(self._creso, &dts)
except OverflowError as err:
fmt = dts_to_iso_string(dts)
fmt = dts_to_iso_string(&dts)
raise OutOfBoundsDatetime(
f"Out of bounds timestamp: {fmt} with frequency '{self.unit}'"
) from err
Expand Down

0 comments on commit 4eba919

Please sign in to comment.