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

Date Field

Overview

A date without a time (by default in ISO8601 format). Read more in Table Schema Standard.

Example

from frictionless import Schema, extract, fields

data = [['name'], ['2022-08-22']]
rows = extract(data, schema=Schema(fields=[fields.DateField(name='name')]))
print(rows)
[{'name': datetime.date(2022, 8, 22)}]

Reference

fields.DateField (class)

fields.DateField (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) -> 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])

fields.dateField.type (property)

Signature

ClassVar[str]

fields.dateField.builtin (property)

Signature

ClassVar[bool]

fields.dateField.supported_constraints (property)

Signature

ClassVar[List[str]]

fields.dateField.name (property)

Signature

Optional[str]

fields.dateField.title (property)

Signature

Optional[str]

fields.dateField.description (property)

Signature

Optional[str]

fields.dateField.format (property)

Signature

str

fields.dateField.missing_values (property)

Signature

List[str]

fields.dateField.constraints (property)

Signature

dict

fields.dateField.rdf_type (property)

Signature

Optional[str]

fields.dateField.example (property)

Signature

Optional[str]

fields.dateField.schema (property)

Signature

Optional[Schema]

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.