I'm trying to add a new variable to an entity.
I'm trying to add a variable as follows:
es['Product'].add_variable("inventory", data=inventory_series)
however I'm getting this error:
TypeError: 'Series' objects are mutable, thus they cannot be hashed
and if I specify the type argument as an int,
es['Product'].add_variable("inventory", data=inventory_series)
I get a different error:
--> 558 new_v = type(new_id, entity=self)
559 self.variables.append(new_v)
560
TypeError: 'entity' is an invalid keyword argument for this function
is there another way to add a new variable to an Entity?
Thank you,