-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can achieve this by customizing the class MyData(Data):
def __inc__(self, key, value, *args, **kwargs):
if key == 'node_type':
return int(node_type.max()) + 1
return super().__inc__(key, value, *args, **kwargs) |
Beta Was this translation helpful? Give feedback.
You can achieve this by customizing the
Data.__inc__
method, see here: