shubh7 commited on
Commit
94309c7
·
verified ·
1 Parent(s): 054af5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -43,18 +43,18 @@ import xgboost as xgb
43
  import os
44
  import kagglehub
45
 
46
- # Download latest version
47
- path = kagglehub.dataset_download("mczielinski/bitcoin-historical-data")
48
 
49
- print("Path to dataset files:", path)
50
 
51
 
52
- # Path to the dataset folder (already defined as 'path')
53
  csv_file = "btcusd_1-min_data.csv"
54
- full_path = os.path.join(path, csv_file)
55
 
56
  # Load the dataset using pandas
57
- df = pd.read_csv(full_path)
58
  df['Date'] = pd.to_datetime(df['Timestamp'], unit='s').dt.date
59
 
60
  # Grouping the DataFrame by date and calculating the mean of 'Open', 'Close', 'High', 'Low', and 'Volume' columns
 
43
  import os
44
  import kagglehub
45
 
46
+ # # Download latest version
47
+ # path = kagglehub.dataset_download("mczielinski/bitcoin-historical-data")
48
 
49
+ # print("Path to dataset files:", path)
50
 
51
 
52
+ # # Path to the dataset folder (already defined as 'path')
53
  csv_file = "btcusd_1-min_data.csv"
54
+ # full_path = os.path.join(path, csv_file)
55
 
56
  # Load the dataset using pandas
57
+ df = pd.read_csv("btcusd_1-min_data.csv")
58
  df['Date'] = pd.to_datetime(df['Timestamp'], unit='s').dt.date
59
 
60
  # Grouping the DataFrame by date and calculating the mean of 'Open', 'Close', 'High', 'Low', and 'Volume' columns