CoolFace
Apppublic

Girish88/wf88

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
data_generator.py35 linesDownload Raw Back to root
1# -*- coding: utf-8 -*-2"""data_generator.ipynb3 4Automatically generated by Colab.5 6Original file is located at7    https://colab.research.google.com/drive/1QPeL6hLhE358quZIOB1Jk8eu1m_ZjKwg8"""9 10import pandas as pd11import numpy as np12 13# Generate sample regulatory report data14np.random.seed(42)15num_records = 50016 17data = {18    "Customer_ID": np.random.randint(1000, 2000, num_records),19    "Account_Balance": np.random.uniform(0, 10000, num_records),20    "Transaction_Amount": np.random.uniform(-500, 5000, num_records),  # Some negative values for testing21    "Reported_Amount": np.random.uniform(-500, 5000, num_records),  # Some negative values for testing22    "Currency": np.random.choice(["USD", "EUR", "INR", "GBP"], num_records),23    "Country": np.random.choice(["USA", "Germany", "India", "UK"], num_records),24    "Transaction_Date": pd.date_range(start="2023-01-01", periods=num_records, freq="D").strftime('%Y-%m-%d'),25    "Risk_Score": np.random.uniform(0, 1, num_records),26}27 28# Create DataFrame29df = pd.DataFrame(data)30 31# Save sample data to CSV32df.to_csv("data/regulatory_report_no_nulls.csv", index=False)33 34# Display sample data35print(df.head())