pandas 1.4.2

ParametersRaises
validate_args_and_kwargs(fname, args, kwargs, max_fname_arg_count, compat_args)

Parameters

fname: str :

The name of the function being passed the :None:None:`**kwargs` parameter

args: tuple :

The :None:None:`*args` parameter passed into a function

kwargs: dict :

The :None:None:`**kwargs` parameter passed into :None:None:`fname`

max_fname_arg_count: int :

The minimum number of arguments that the function :None:None:`fname` requires, excluding those in :None:None:`args`. Used for displaying appropriate error messages. Must be non-negative.

compat_args: dict :

A dictionary of keys that :None:None:`kwargs` is allowed to have and their associated default values.

Raises

TypeError if `args` contains more values than there are
`compat_args` OR `kwargs` contains keys not in `compat_args`
ValueError if `args` contains values not at the default value (`None`)
`kwargs` contains keys in `compat_args` that do not map to the default
value as specified in `compat_args`

Checks whether parameters passed to the *args and **kwargs argument in a function :None:None:`fname` are valid parameters as specified in :None:None:`*compat_args` and whether or not they are set to their default values.

See Also

validate_args

Purely args validation.

validate_kwargs

Purely kwargs validation.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /pandas/util/_validators.py#162
type: <class 'function'>
Commit: