Danger

You are looking at the documentation for an older version of the SDV! We are no longer supporting or maintaining this version of the software

Click here to go to the new docs pages.

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.