pandas 1.4.2

ParametersRaisesBackRef
validate_args(fname, args, max_fname_arg_count, compat_args)

Parameters

fname : str

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

args : tuple

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

max_fname_arg_count : int

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

compat_args : dict

A dictionary of keys and their associated default values. In order to accommodate buggy behaviour in some versions of numpy , where a signature displayed keyword arguments but then passed those arguments positionally internally when calling downstream implementations, a dict ensures that the original order of the keyword arguments is enforced.

Raises

TypeError

If :None:None:`args` contains more values than there are :None:None:`compat_args`

ValueError

If :None:None:`args` contains values that do not correspond to those of the default values specified in :None:None:`compat_args`

Checks whether the length of the :None:None:`*args` argument passed into a function has at most :None:None:`len(compat_args)` arguments and whether or not all of these elements in :None:None:`args` are set to their default values.

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

pandas.util._validators.validate_args_and_kwargs

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#81
type: <class 'function'>
Commit: