Skip to content
Snippets Groups Projects
Commit 7477d0bc authored by Dennis Noll's avatar Dennis Noll
Browse files

[data] DSS: adds concantenate

parent 1b5d2905
No related branches found
No related tags found
No related merge requests found
......@@ -67,6 +67,10 @@ class SKDict(dict):
keys.update(*(inst.keys() for inst in insts))
return cls({key: tuple(inst.get(key) for inst in insts) for key in keys})
@classmethod
def concatenate(cls, *insts):
return cls.zip(*insts).map(lambda x: np.concatenate(x))
def only(self, *keys):
return self.__class__({key: self[key] for key in keys})
......
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