Function definition (not defined in code)

Course Name: Python for Trading: Basic, Section No: 10, Unit No: 1, Unit type: Notebook



You can define this function: 'monthly_stocks_data'

You can define this function as 'monthly_percent_change'





https://drive.google.com/file/d/1AauJ46XY2F15HuIsUdwBZGIsTFgk77Nf/view?usp=sharing

11.png - Google Drive

 

monthly_stocks_data is defined in cell number 2 of the notebook. 



First, we have fetched the daily_stocks_data, then converted it into monthly_stocks_data, then calculated the monthly_percent_change and finally portfolio_returns.



You need to run the notebook from cell number 1.