-
Notifications
You must be signed in to change notification settings - Fork 739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chapter 19 19.3 In[95] #13
Comments
Can you please post a complete example that reproduces your problem. How to create a Minimal, Complete, and Verifiable example |
@yhilpisch I don't know how I could correct this error and I wonder whether there is something wrong with my code or something else. |
Such screenshots are not really helpful. How shall I possibly replicate your problem? Please post a complete (!), minimal code example that I can copy and use to replicate your error. |
I have a question related to American Put Option Analysis by using the valuation_mcs_american.py and the code given in Chapter 19 Section 19.3:
For In[95]: for maturity in (dt.datetime(2020, 12, 31), dt.datetime(2021, 12, 31):
When I type this and after finish the whole In[95]: It reported an error of saying: Only size-1 arrays can be converted to Python scalars
However, if I only designate: maturity=dt.datetime(2020, 12, 31), there is no error happening again
I would like to know what could have happened and if there are some further guidelines, please let me know, thanks
The text was updated successfully, but these errors were encountered: