Hm, that's not the way you're supposed to use it:
First you create a report:
profile = ProfileReport(df, title="Pandas Profiling Report")
Then you show it:
profile.to_notebook_iframe()
Possibly the README needs updating? It does refer to df.profile_report():
This is actually a bug that should be resolved. I'll look into it.
I've looked into the issue and was able to reproduce it in Google Colab. It seems that this is caused by an older version of pandas-profiling. Updating it resolves it. Please don't forget to reload the modules/restart the kernel.
!pip install -U pandas-profiling
The documentation should be updated so that this information is easier to find.
Most helpful comment
This is actually a bug that should be resolved. I'll look into it.