pandas.Panel.update¶
-
Panel.
update
(other, join='left', overwrite=True, filter_func=None, errors='ignore')[source]¶ Modify Panel in place using non-NA values from other Panel.
May also use object coercible to Panel. Will align on items.
Parameters: - other : Panel, or object coercible to Panel
The object from which the caller will be udpated.
- join : {‘left’, ‘right’, ‘outer’, ‘inner’}, default ‘left’
How individual DataFrames are joined.
- overwrite : bool, default True
If True then overwrite values for common keys in the calling Panel.
- filter_func : callable(1d-array) -> 1d-array<bool>, default None
Can choose to replace values other than NA. Return True for values that should be updated.
- errors : {‘raise’, ‘ignore’}, default ‘ignore’
If ‘raise’, will raise an error if a DataFrame and other both.
Changed in version 0.24.0: Changed from raise_conflict=False|True to errors=’ignore’|’raise’.
See also
DataFrame.update
- Similar method for DataFrames.
dict.update
- Similar method for dictionaries.