You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm trying to run the simulator example usage in listing 4.7 but I get a "Value error: Lenghts must match"
When I print the lengths of the variables c_series and p_series in _compute_equity_series (within the PortfolioHistory class) I indeed find out that they are different (1280 vs 2495).
I think I have all set up correctly, my example usage of PortfolioHistory runs correctly.
Do you have any advice?
Thank you.
The book is great.
The text was updated successfully, but these errors were encountered:
Hi Job, please try running the simulate_portfolio.py script directly from the GitHub repo. It is the same as Listing 4.7, and I just verified it works on a clean copy of the repo.
Hello,
I'm trying to run the simulator example usage in listing 4.7 but I get a "Value error: Lenghts must match"
When I print the lengths of the variables
c_series
andp_series
in_compute_equity_series
(within thePortfolioHistory class
) I indeed find out that they are different (1280 vs 2495).I think I have all set up correctly, my example usage of PortfolioHistory runs correctly.
Do you have any advice?
Thank you.
The book is great.
The text was updated successfully, but these errors were encountered: