aito.schema.AitoDataTypeSchema.infer_from_samples

classmethod AitoDataTypeSchema.infer_from_samples(samples: Iterable, max_sample_size: int = 100000)aito.schema.AitoDataTypeSchema

infer AitoDataType from the given samples

Parameters
  • samples (Iterable) – iterable of sample

  • max_sample_size (int) – at most first max_sample_size will be used for inference, defaults to 100000

Returns

inferred Aito column type

Return type

str