erykml / Python-for-Finance-Cookbook-2E

The repository of "Python for Finance Cookbook" 2nd edition
MIT License
171 stars 129 forks source link

adjusting for inflation #8

Open mjmacarty opened 1 year ago

mjmacarty commented 1 year ago

In chapter 2 page 29, the returns are adjusted for inflation, but I am not sure of the value of adjusting a single day's return at the end of each month. It seems like instead of .last() we should .sum() the resample, and then adjust for inflation.