pyspark.sql.functions.functools

functools.py - Tools for working with functions and callable objects

Functions

lru_cache([maxsize, typed])

Least-recently-used cache decorator.

singledispatch(func)

Single-dispatch generic function decorator.

total_ordering(cls)

Class decorator that fills in missing ordering methods

update_wrapper(wrapper, wrapped[, assigned, …])

Update a wrapper function to look like the wrapped function

wraps(wrapped[, assigned, updated])

Decorator factory to apply update_wrapper() to a wrapper function

Classes

partial

partial(func, *args, **keywords) - new function with partial application of the given arguments and keywords.

partialmethod(func, *args, **keywords)

Method descriptor with partial application of the given arguments and keywords.