Import pandas_profiling give error

dear boss
Please review my code obtained from Components • Streamlit. However, it did not execute properly and resulted in an error. Kindly examine both the code and the error message, and provide me with the correct solution.

import pandas as pd

import pandas_profiling

import streamlit as st

from streamlit_pandas_profiling import st_profile_report

df = pd.read_csv(“https://storage.googleapis.com/tf-datasets/titanic/train.csv”)

pr = df.profile_report()

st_profile_report(pr)

Hello,
Did you read https://stackoverflow.com/questions/78252285/attributeerror-module-numba-has-no-attribute-generated-jit ?

:warning: pandas-profiling package naming was changed. To continue profiling data use ydata-profiling instead! use GitHub - ydataai/ydata-profiling: 1 Line of code data quality profiling & exploratory data analysis for Pandas and Spark DataFrames.

How to fix the error for the main use cases

use pip install ydata-profiling rather than pip install pandas-profiling replace pandas-profiling by ydata-profiling in your pip requirements files (requirements.txt, setup.py, setup.cfg, Pipfile, etc …) if the pandas-profiling package is used by one of your dependencies it would be great if you take some time to track which package uses pandas_profiling instead of ydata_profiling for the imports

Look like it’s not a ‘streamlit’ relate problem