PyPortfolioOpt
PyPortfolioOpt copied to clipboard
Add check to `market_prices`
The method expected_returns.capm_returns() fails if you provide a Series as market_prices. I added a similar check to the one that is done in the prices argument and transformed it into a dataframe. It should fix it.