The field contains an ordered collection of primitive values of a fixed item type, written as a string with the items separated by a delimiter. Read more in Table Schema Standard.
from frictionless import Schema, extract, fields
data = [['name'], ['1,2,3']]
rows = extract(data, schema=Schema(fields=[fields.ListField(name='name', item_type='integer')]))
print(rows)
{'memory': [{'name': [1, 2, 3]}]}
Field representation
(*, name: str, title: Optional[str] = None, description: Optional[str] = None, format: str = default, missing_values: List[str] = NOTHING, constraints: Dict[str, Any] = NOTHING, rdf_type: Optional[str] = None, example: Optional[str] = None, schema: Optional[Schema] = None, delimiter: str = ,, item_type: str = string) -> None
Item types allowed by the standard.
ClassVar[List[str]]
The character sequence that separates the lexically represented items. The default value is ",".
str
The type of the list items, given as a Table Schema type. Items are read with the default format of that type, as the standard requires. The default value is "string".
str