Course Name: Day Trading Strategies for Beginners, Section No: 7, Unit No: 1, Unit type: Notebook
i recieve a message of error, but only when i process the pf.create_simple_tear_sheet(data.strategy_returns)
what can i do?
Course Name: Day Trading Strategies for Beginners, Section No: 7, Unit No: 1, Unit type: Notebook
i recieve a message of error, but only when i process the pf.create_simple_tear_sheet(data.strategy_returns)
what can i do?
Hi Diego,
We've added this line in cell 1:
# For ignoring warnings
import warnings
warnings.filterwarnings('ignore')
Hi Rushda,
Thanks for your help, but i import the warnings and now this error appear
'Series' object has no attribute 'iteritems' I try to upgrade de pandas version and the pyfolio maybe are in differents versions but the problem still here. I want to add tha in the notebook in quantra the code is working correctly but when i put in my jupyter the error that i mentioned appears.
Hey Diego,
In the same environment, you can install pyfolio version 0.9.2 and pandas version 1.2.4. These work together and you should not have a problem running the notebook with these installed. Please refer to the code below in order to install these:
!pip install pyfolio==0.9.2
!pip install pandas==1.2.4
You can also try out pyfolio-reloaded instead of pyfolio. Installation can be done as follows:
!pip install pyfolio-reloaded
Hope this helps!