linearmodels.shared.utility.AttrDict.pop

AttrDict.pop(key: Hashable | None, default: Any = None) → Any[source]

Remove specified key and return the corresponding value.

Parameters:
key: Hashable | None

The key to remove.

default: Any = None

The value to return if the key is not found. The default is None.

Returns:

The value of the key, or default if the key is not found.

Return type:

object