visions.functional.cast_to_inferred

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

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

Parameters
  • df – the DataFrame to cast

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

Return type

Tuple[DataFrame, dict]

Returns

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