Skip to content

Update fake_data_generator.py #112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions db/fake_data_generator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
import subprocess
import sys

# Required Libraries
required_libraries = [
"pandas",
"faker",
"faker_airtravel",
"flatten_json",
"numpy"
]
for library in required_libraries:
try:
__import__(library)
except ImportError:
print(f"Installing {library}...")
subprocess.check_call([sys.executable, "-m", "pip", "install", library])
"""
This script will generate fake data which can be used to demo DOT. See below
for code to generate each test type scenario. Script saves a sql file in ./dot which
Expand Down