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
toerrors=’ignore’|’raise’
.
See also
-
DataFrame.update
- Similar method for DataFrames.
-
dict.update
- Similar method for dictionaries.
-
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.24.2/reference/api/pandas.Panel.update.html