Skip to content

archaeo_super_prompt.types.structured_data

source module archaeo_super_prompt.types.structured_data

Types related to the wanted structured data in the dataset.

Classes

Functions

source class OutputStructuredDataSchema()

Bases : pa.DataFrameModel

Schema of the intervention target metadata in the dataset.

source class FeaturedOutputStructureDataSchema()

Bases : OutputStructuredDataSchema

New structure data schema for the new models, with some fields that are normalized.

source class DatasetAnswerSchema()

Bases : NamedTuple

Schema of a row in the answer dataframe loadable from the dataset.

source outputStructuredDataSchema_itertuples(df: DataFrame[FeaturedOutputStructureDataSchema])

Type-safe wrapper of DataFrame.itertuples.