Skip to content
Snippets Groups Projects
Commit 8e72568d authored by Bert Palm's avatar Bert Palm 🎇
Browse files

added __copy__ and __deepcopy__

parent a5b93135
No related branches found
No related tags found
1 merge request!218Flags
......@@ -286,6 +286,18 @@ class History:
"""
return self._constructor(hist=self, copy=deep)
def __copy__(self, deep: bool = True):
return self.copy(deep=deep)
def __deepcopy__(self, memo=None):
"""
Parameters
----------
memo, default None
Standard signature. Unused
"""
return self.copy(deep=True)
def __len__(self) -> int:
return len(self.hist.columns)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment