Skip to content

Commit

Permalink
Example re-added
Browse files Browse the repository at this point in the history
  • Loading branch information
abebaturi committed Feb 1, 2025
1 parent c147945 commit c2f6bf2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/traders_copilot_mzza_25/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ def generate_synthetic_data(start_date, end_date, num_records=252, seed=40):
-------
pd.DataFrame: A DataFrame containing the generated stock data with 'Date', 'Open', 'High', 'Low',
'Close', 'Adj Close', and 'Volume' columns.
# Example
if __name__ == "__main__":
start_date = "2023-01-01"
end_date = "2023-12-31"
num_records = 252
# Generate the data
synthetic_data = generate_synthetic_data(start_date, end_date, num_records)
print("Synthetic Stock Data:")
print(synthetic_data.head())
"""

Expand Down

0 comments on commit c2f6bf2

Please sign in to comment.