Closed R-Palazzo closed 1 year ago
This feature is not officially supported in the SDV library and therefore was not included in the documentation.
In practice, we only see this being used for creating dummy/demo datasets and there is another method load_from_dict that can be used to achieve the same effect.
# current usage that we see
metadata = SingleTableMetadata()
metadata.add_column(
'A',
sdtype='numerical'
)
# recommended method
metadata = SingleTableMetadata.load_from_dict({
'columns': {
'A': { 'sdtype': 'numerical' }
}
})
Alternatively, if you wish to add a new column ad-hoc (eg. if your schema has changed), you can:
There is no documentation for the
add_column
method for theSingleTableMetadata
andMultiTableMetadata
.