Model.update_pandas#
- Model.update_pandas(old_data, new_data=None)#
Update a pandas object assigned to References
Replace with
new_datathe value of such a Reference whose value isold_data. Bothnew_dataandold_dataneed to be DataFrame or Series. Ifold_datais 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_datais not given,Cellsthat are dependent on the References are cleared.If
old_datahas an associatedPandasData, this method associates thePandasDatatonew_data.This method is available for
ModelandUserSpace. The method performs identically regardless of the types of calling objects.- Parameters:
Added in version 0.18.0.
See also
new_pandas(): Create a reference to pandas dataPandasData: IOSpec for pandas objects