Create metadata for Synthetic Data Vault (SDV) in Python

 Creating metadata for the demo 

 from sdv import load_demo
 metadata, tables =  load_demo(metadata=True)

 Creating metadata for a table using schema from a dataframe

 from sdv.metadata import SingleTableMetadata 

 metadata = SingleTableMetadata()
 metadata.detect_from_dataframe(data=df)

 

 

 Creating metadata from a file

  from sdv import Metadata as SdvMetadata
  metadata = SdvMetadata(pathToJson)
 

Updating metadata

 metadata.update_column(
    column_name='customer_email',
    sdtype='email',
    pii=True
)