fumitoh / modelx

Use Python like a spreadsheet!

Home Page:https://modelx.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Method to replace existing pandas object

alexeybaran opened this issue · comments

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.

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

Perfect, thank you!