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

mvd cpy_emty

parent 69e76c10
No related branches found
No related tags found
2 merge requests!2Develop,!1complete rework
......@@ -434,11 +434,6 @@ class DictOfSeries:
def __deepcopy__(self, memo=None):
return self.copy(deep=True)
def copy_empty(self):
new = DictOfSeries()
new._itype = self.itype
return new
def copy(self, deep=True):
new = self.copy_empty()
# We use `_data` here, because all checks are already done.
......@@ -449,6 +444,11 @@ class DictOfSeries:
new._data[k] = self._data[k].copy(deep=deep)
return new
def copy_empty(self):
new = DictOfSeries()
new._itype = self.itype
return new
def __op1__(self, op):
new = self.copy_empty()
for k in self.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