Unable to import Pandas Profiling

Thanks a lot to all who tried to help me out. This worked.

import sys
!{sys.executable} -m pip install pandas-profiling

For Mac

pip install pandas-profiling

And For Ubuntu

!pip install pandas-profiling

Sure, you can install via pip but I like to use conda for as many installs as possible to help keep the environment easier to work with.

The conda page shows multiple versions for pandas-profiling: https://anaconda.org/conda-forge/pandas-profiling

You need to specify the latest one when installing:

conda install -c conda-forge pandas-profiling=2.6.0

Replace 2.6.0 with the latest version.