Profile_report() does not seem to work

Course Name: Data & Feature Engineering for Trading, Section No: 3, Unit No: 5, Unit type: Notebook



I am trying to replicate the code on Spyder and am getting an error while generating the profiling report. How can I



AttributeError: 'DataFrame' object has no attribute 'profile_report'



I used an alternative code to generate the report and encounter another error:



Code: profile = pandas_profiling.ProfileReport(daily_df)

AttributeError: 'DataFrame' object has no attribute 'profile_report'



How can I get the code to work?

Hi Anthony,

It seems the package is not installed on your system. 

Can you try running !pip install pandas-profiling in the notebook before you run the above code?



Let me know if that works for you!