ByUserDefinedFields

class rolumns.ByUserDefinedFields(*fields: UserDefinedField)[source]

Groups rows by a list of user-defined fields. fields describes the fields to resolve.

NAME = 'name'

Path to the field name.

VALUE = 'value'

Path to the field value.

name() str[source]

Gets the name of this group unique to its parent column set.

resolve(data: Any) Iterable[Any][source]

Resolves data to an iterable list of records.

The field name will be recorded at the ByUserDefinedFields.NAME path and the value at ByUserDefinedFields.VALUE.

class rolumns.UserDefinedField(name: str, source: Union[Source, str])[source]

A user-defined field.