Edit page in Livemark
(2022-09-19 18:33)

Array Field

Overview

The field contains data that is a valid JSON format arrays. Read more in Table Schema Standard.

Example

from frictionless import Schema, extract, fields

data = [['name'], ['["value1", "value2"]']]
rows = extract(data, schema=Schema(fields=[fields.ArrayField(name='name')]))
print(rows)
[{'name': ['value1', 'value2']}]

Reference

fields.ArrayField (class)

fields.ArrayField (class)

Field representation

Signature

(*, name: Optional[str] = None, title: Optional[str] = None, description: Optional[str] = None, format: str = default, missing_values: List[str] = NOTHING, constraints: dict = NOTHING, rdf_type: Optional[str] = None, example: Optional[str] = None, schema: Optional[Schema] = None, array_item: Optional[dict] = NOTHING) -> None

Parameters

  • name (Optional[str])
  • title (Optional[str])
  • description (Optional[str])
  • format (str)
  • missing_values (List[str])
  • constraints (dict)
  • rdf_type (Optional[str])
  • example (Optional[str])
  • schema (Optional[Schema])
  • array_item (Optional[dict])

fields.arrayField.array_item (property)

NOTE: add docs

Signature

Optional[dict]

It's a beta version of Frictionless Framework (v5). Read Frictionless Framework (v4) docs for a version that is currently installed by default by pip.