Multi Table Metadata
Last updated
Last updated
Use this guide to write a description for multi table data. You have multi table data if your data is present in multiple tables that have rows and columns. Usually the tables are connected to each other through primary and foreign key references.
Your data description is called metadata. SDMetrics expects metadata as a Python dictionary object.
The file is an object that includes a dictionary named "tables"
.
The "tables"
dictionary contains the information about each individual table of your application. Its keys are the table names and the values are dictionaries that describe each single table. This includes:
"primary_key"
: the column name used to identify a row in your table
(required) "columns"
: a dictionary description of each column
Inside "columns"
, you will describe each column. You'll start with the name of the column. Then you'll specify the type of data and any other information about it.
There are specific data types to choose from. Expand the options below to learn about the data types.
Boolean columns represent True or False values.
Properties (None)
After creating your dictionary, you can save it as a JSON file. For example, my_metadata_file.json
.
In the future, you can load the Python dictionary by reading from the file.
(required) datime_format
: A string describing the format as defined by .
regex_format
: A string describing the format of the ID as a
You can input any other data type such as 'phone_number'
, 'ssn'
or 'email'
. See the for a full list.