A calendar year as per XMLSchema gYear. Usual lexical representation is YYYY. There are no format options. Read more in Table Schema Standard.
from frictionless import Schema, extract, fields
data = [['name'], ['2022']]
rows = extract(data, schema=Schema(fields=[fields.YearField(name='name')]))
print(rows)
{'memory': [{'name': 2022}]}
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) -> None