Skip to content

Commit 5c9e079

Browse files
Khor Chean Weiyehoshuadimarsky
Khor Chean Wei
authored andcommitted
BUG Fix: Cannot read pickle generate_legacy_storage_files version 1.4.2 under environment pandas version 1.5.0 (incompatibilites issue) (pandas-dev#47104)
pickle
1 parent af81898 commit 5c9e079

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

pandas/_libs/tslibs/timestamps.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ cdef inline _Timestamp create_timestamp_from_ts(
148148
return ts_base
149149

150150

151-
def _unpickle_timestamp(value, freq, tz, reso):
151+
def _unpickle_timestamp(value, freq, tz, reso=NPY_FR_ns):
152152
# GH#41949 dont warn on unpickle if we have a freq
153153
if reso == NPY_FR_ns:
154154
ts = Timestamp(value, tz=tz)
Binary file not shown.

0 commit comments

Comments
 (0)