Model.update_pandas#

Model.update_pandas(old_data, new_data=None)#

Update a pandas object assigned to References

Replace with new_data the value of such a Reference whose value is old_data. Both new_data and old_data need to be DataFrame or Series. If old_data is assigned to multiple References in a model, the values of all the References are replaced with new_data, even the References are defined in different locations within the model. The identity of pandas objects is determined by the id() function. If new_data is not given, Cells that are dependent on the References are cleared.

If old_data has an associated PandasData, this method associates the PandasData to new_data.

This method is available for Model and UserSpace. The method performs identically regardless of the types of calling objects.

Parameters:

New in version 0.18.0.