pandas 1.4.2

ParametersBackRef
deprecate_nonkeyword_arguments(version: 'str | None', allowed_args: 'list[str] | None' = None, stacklevel: 'int' = 2) -> 'Callable[[F], F]'

Parameters

version : str, optional

The version in which positional arguments will become keyword-only. If None, then the warning message won't specify any particular version.

allowed_args : list, optional

In case of list, it must be the list of names of some first arguments of the decorated functions that are OK to be given as positional arguments. In case of None value, defaults to list of all arguments not having the default value.

stacklevel : int, default=2

The stack level for warnings.warn

Decorator to deprecate a use of non-keyword arguments of a function.

Examples

See :

Back References

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

pandas.util._decorators._format_argument_list

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/_decorators.py#260
type: <class 'function'>
Commit: