linearmodels.shared.utility.AttrDict.update

AttrDict.update(*args: SupportsKeysAndGetItem[Any, Any] | Iterable[tuple[Any, Any]], **kwargs: Any) → None[source]

Update AD from dictionary or iterable E and F.

If E is present and has a .keys() method, then does: for k in E: AD[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: AD[k] = v In either case, this is followed by: for k in F: AD[k] = F[k]

Parameters:
*args: SupportsKeysAndGetItem[Any, Any] | Iterable[tuple[Any, Any]]

At most one mapping, or iterable of (key, value) pairs, which is E.

**kwargs: Any

The items of F, with the names of the keyword arguments as keys.