CustomOperation#

class mobgap.utils.df_operations.CustomOperation(
identifier: Hashable | Sequence | str,
function: Callable | list[Callable],
column_name: str | tuple[str, ...],
)[source]#

Metadata for custom aggregations and transformations.

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

__init__(*args, **kwargs)#
column_name: str | tuple[str, ...]#

Alias for field number 2

count(value, /)#

Return number of occurrences of value.

function: Callable | list[Callable]#

Alias for field number 1

identifier: Hashable | Sequence | str#

Alias for field number 0

index(value, start=0, stop=sys.maxsize, /)#

Return first index of value.

Raises ValueError if the value is not present.

Examples using mobgap.utils.df_operations.CustomOperation#

Evaluation of final WB-level DMOs

Evaluation of final WB-level DMOs