A specific month in a specific year as per XMLSchema gYearMonth. Usual lexical representation is: YYYY-MM. Read more in Table Schema Standard.
from frictionless import Schema, extract, fields
data = [['name'], ['2022-08']]
rows = extract(data, schema=Schema(fields=[fields.YearmonthField(name='name')]))
print(rows)
[{'name': yearmonth(year=2022, month=8)}]
Field representation
(*, 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) -> None
ClassVar[str]
ClassVar[bool]
ClassVar[List[str]]
Optional[str]
Optional[str]
Optional[str]
str
List[str]
dict
Optional[str]
Optional[str]
Optional[Schema]