datapad.fields#

Functions for manipulating and retrieving fields within structured sequences. These functions are often used in conjunction with the datapad.Sequence.map() method to manipulate structured sequences.

Functions

add

Constructs a function to add or append new fields to a dict or list of data. The returned function will assume one of the following signatures::.

apply

Constructs a function to transform the fields in a dict or list of data. The returned function will assume one of the following signatures::.

asdict

Constructs a function that will convert a list into a dict using the given keys. The returned function will have the signature::.

get

Constructs a function F(data) to get a field-value given a field-key from a list or dict.

select

Constructs a function to select fields from a list or dict.