sdv.metadata.dataset.Metadata.get_dtypes

Metadata.get_dtypes(table_name, ids=False, errors=None)[source]

Get a dict with the dtypes for each field of a given table.

Parameters
  • table_name (str) – Table name for which to retrive the dtypes.

  • ids (bool) – Whether or not include the id fields. Defaults to False.

Returns

Dictionary that contains the field names and data types from a table.

Return type

dict

Raises

ValueError – If a field has an invalid type or subtype or if the table does not exist in this metadata.