I am doing the streamlit 30 days challenge course.
When importing pandas_profiling I get an error that is not solved by updating pandas and pandas_profiling.
import pandas as pd import numpy as np import streamlit as st import altair as alt from datetime import time, datetime from vega_datasets import data as vega_data import pandas_profiling
If applicable, please provide the steps we should take to reproduce the error or specified behavior.
Explain what you expect to happen when you run the code above.
ImportError: cannot import name ‘to_html’ from ‘pandas_profiling.report’ (C:\Users\Hans\anaconda3\envs\streamlit-env\lib\site-packages\pandas_profiling\report_init_.py)
Explain the undesired behavior or error you see when you run the code above.
If you’re seeing an error message, share the full contents of the error message here.
- Streamlit version: (get it with
$ streamlit version)
- Python version: (get it with
$ python --version)
- Using Conda? PipEnv? PyEnv? Pex?
- OS version:
- Browser version:
Using Conda? PipEnv? PyEnv? Pex? Share the contents of your requirements file here.
Not sure what a requirements file is? Check out this doc and add a requirements file to your app.
- Link to your GitHub repo:
- Link to your deployed app:
If needed, add any other context about the problem here.