Skip to content

How to generate multiple locale synthetic data #2727

@esc28

Description

@esc28

Environment details

  • SDV version: 1.27 Community version
  • Python version: 3.13.7
  • Operating System: RedHat 8.10

Problem description

I can generate single locale synthetic data like,

from sdv.single_table import GaussianCopulaSynthesizer
synthesizer=GaussianCopulaSynthesizer(
metadata,
locales=['en_CA']
)
synthesizer.fit(data)
synthetic_data=synthesizer.sample(num_rows=500)
synthetic_data.to_csv('filename.csv')

Is there a way to generate 30% Canadian, 40% US and 30% UK synthetic data and save it to one csv file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionGeneral question about the softwareunder discussionIssue is currently being discussed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions