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 isold_data
. Bothnew_data
andold_data
need to be DataFrame or Series. Ifold_data
is assigned to multiple References in a model, the values of all the References are replaced withnew_data
, even the References are defined in different locations within the model. The identity of pandas objects is determined by the id() function. Ifnew_data
is not given,Cells
that are dependent on the References are cleared.If
old_data
has an associatedPandasData
, this method associates thePandasData
tonew_data
.This method is available for
Model
andUserSpace
. The method performs identically regardless of the types of calling objects.- Parameters:
Added in version 0.18.0.
See also