Spaces:
Running
Running
Update app.py
Browse files
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(
|
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
|