This is a general feature request for an integration with Faker and the DayZSynthesizer.
Problem
The DayZSynthesizer is currently set up to use the metadata’s sdtype to create realistic data. If the sdtype is set to something higher level (such as phone_number or text), the DayZSynthesizer will use Faker to generate data to match the overall concept.
Unfortunately, it is not possible for users to override or customize the parameters that DayZ should use. Faker is a rich library, so a deeper integration would enable access for many more types of data in DayZ.
As an example, consider how the SDV allow users to input AnonymizedFaker. There is a deep integration with Faker, allowing users to input any provider/function/kwargs from Faker.
Workaround
Until this feature is added, it should be possible to run the Faker library as a one-off to replace individual column(s) of your data. (The Faker library comes automatically pre-installed with SDV.)
The example below shows how to use faker to create 16-digit credit card numbers coming from VISA.
from faker import Faker
NUM_ROWS = 100 # changed based on the size of your table
# create a list of fake values directly from faker
fake = Faker('en_US')
column_values = []
for i in range(NUM_ROWS):
credit_number = fake.credit_card_number(card_type='visa16')
column_values.append(credit_number)
# override your data column with the fake column
data['credit_numbers'] = column_values