warnings.warn("prices are not in a dataframe", RuntimeWarning)
prices = pd.DataFrame(prices)
assets = prices.columns
daily_returns = prices.pct_change().dropna(how="all")
N = len(assets)
// Loop over matrix, filling entries with the pairwise exp cov
S = np.zeros((N, N))
After Change
warnings.warn("prices are not in a dataframe", RuntimeWarning)
prices = pd.DataFrame(prices)
assets = prices.columns
daily_returns = daily_price_returns(prices)
N = len(assets)
// Loop over matrix, filling entries with the pairwise exp cov
S = np.zeros((N, N))