Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ def plot_efficient_frontier(dataframes, names):
|
|
| 11 |
|
| 12 |
# Ensure you include the code for the function here
|
| 13 |
# Calculate daily returns for each asset
|
| 14 |
-
returns = pd.concat([df['Close'].pct_change().dropna() for df in dataframes], axis=1)
|
| 15 |
returns.columns = names
|
| 16 |
|
| 17 |
mean_returns = returns.mean() * 252
|
|
|
|
| 11 |
|
| 12 |
# Ensure you include the code for the function here
|
| 13 |
# Calculate daily returns for each asset
|
| 14 |
+
returns = pd.concat([df['Close'].pct_change().dropna() for df in dataframes], axis=1)
|
| 15 |
returns.columns = names
|
| 16 |
|
| 17 |
mean_returns = returns.mean() * 252
|