Skip to content

Commit e414666

Browse files
committed
comment
1 parent 965d99a commit e414666

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/io/pytables.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,8 @@ def get(self, key: str):
730730
Same type as object stored in file.
731731
"""
732732
with patch_pickle():
733+
# GH#31167 Without this patch, pickle doesn't know how to unpickle
734+
# old DateOffset objects now that they are cdef classes.
733735
group = self.get_node(key)
734736
if group is None:
735737
raise KeyError(f"No object named {key} in the file")

0 commit comments

Comments
 (0)