Pandas Profiling / Ydata-profiling

Would post this in AttributeError: module 'matplotlib.cbook' has no attribute 'mplDeprecation' but since that is locked I’m posting it here.

If you are okay with the slightly annoying UX of using an iFrame you don’t really need the streamlit-pandas-profiling or streamlit-ydata-profiling dependancies. Just do this:

from ydata_profiling import ProfileReport

profile = ProfileReport(df, title="Pandas Profiling Report", explorative=True)

# Generate the report HTML
report_html = profile.to_html()

st.subheader("Pandas Profiling Report")
# Adjust the width and height to best fit your screen
st.components.v1.html(report_html, width=1000, height=550, scrolling=True)