visions.functional.cast_to_detected

visions.functional.cast_to_detected(data, typeset)[source]

Casts a DataFrame into a typeset by first performing column wise type detection against a provided typeset

Parameters
  • data (Sequence) – the DataFrame to cast

  • typeset (VisionsTypeset) – the Typeset in which we cast

Return type

Sequence

Returns

A tuple of the casted DataFrame and the types to which the columns were cast