fumitoh / modelx

Use Python like a spreadsheet!
https://modelx.io
GNU Lesser General Public License v3.0
89 stars 20 forks source link

Method to replace existing pandas object #85

Closed alexeybaran closed 10 months ago

alexeybaran commented 10 months ago

Is there a way to replace existing pandas object? If I run space.new_pandas a couple of times it breaks saying that the object already exists.

fumitoh commented 10 months ago

Model.update_pandas should do the job. Note that you pass the old and new pandas objects to the method. https://docs.modelx.io/en/latest/reference/generated/modelx.core.model.Model.update_pandas.html

alexeybaran commented 10 months ago

Perfect, thank you!