Additional File Formats
Last updated
The SDV uses the pandas library for data manipulation and synthesizing. If your data is in any other format, load it in as a pandas.DataFrame object to use in the SDV. For multi table data, make sure you format your data as a dictionary, mapping each table name to a different DataFrame object.
multi_table_data = {
'table_name_1': <pandas.DataFrame>,
'table_name_2': <pandas.DataFrame>,
...
}Pandas offers many methods to load in different types of data. For example: SQL table or JSON string.
import pandas as pd
data_table_1 = pd.read_json('file://localhost/path/to/table_1.json')
data_table_2 = pd.read_json('file://localhost/path/to/table_2.json')For more options, see the pandas reference.
Last updated