Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -79,6 +79,7 @@ def fetch_data(symbol='ETHUSDT', interval='1h', start_date='2021-01-01'):
|
|
| 79 |
df['Close'] = df['Close'].astype(float)
|
| 80 |
df['timestamp'] = pd.to_datetime(df['timestamp'], unit='ms')
|
| 81 |
df.set_index('timestamp', inplace=True)
|
|
|
|
| 82 |
return df[['Close']]
|
| 83 |
|
| 84 |
def calculate_ema(data, span=20):
|
|
|
|
| 79 |
df['Close'] = df['Close'].astype(float)
|
| 80 |
df['timestamp'] = pd.to_datetime(df['timestamp'], unit='ms')
|
| 81 |
df.set_index('timestamp', inplace=True)
|
| 82 |
+
print("completed function")
|
| 83 |
return df[['Close']]
|
| 84 |
|
| 85 |
def calculate_ema(data, span=20):
|