Skip to content

Commit

Permalink
update: data generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Haeun-Oh committed Oct 7, 2023
1 parent b47d1c3 commit ccb985a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docker/data-generator/data_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,18 @@
)


if __name__ == "__main__":
def main():
root_file_path = "./data"
file_name_list = ["2019-Oct.csv", "2019-Dec.csv"]

for file_name in file_name_list:
local_csv_file_path = os.path.join(root_file_path, file_name)
minio_file_path = os.path.join("raw", file_name)
minio_file_path = f"raw/{file_name}"
BOTO3_CLIENT.upload_file(
local_csv_file_path,
MINIO_BUCKET,
minio_file_path,
)

if __name__ == "__main__":
main()

0 comments on commit ccb985a

Please sign in to comment.