Installation
Using pip
You can install using the pip package manager by running
pip install -U pandas-profiling[notebook]
jupyter nbextension enable --py widgetsnbextension
If you are in a notebook (locally, at LambdaLabs, on Google Colab or Kaggle), you can run:
import sys
!{sys.executable} -m pip install -U pandas-profiling[notebook]
!jupyter nbextension enable --py widgetsnbextension
You may have to restart the kernel or runtime.
Using conda
You can install using the conda package manager by running
conda env create -n pandas-profiling
conda activate pandas-profiling
conda install -c conda-forge pandas-profiling
This creates a new conda environment containing the module.
Hint
Don’t forget to specify the conda-forge
channel. Omitting it won’t result in an error, as an outdated package lives on the main channel. See frequent issues
Jupyter notebook/lab
For the Jupyter widgets extension to work, which is used for Progress Bars and the widget interface, you might need to activate the extensions. Installing with conda will enable the extension for you for Jupyter Notebooks (not lab).
For Jupyter notebooks:
jupyter nbextension enable --py widgetsnbextension
For Jupyter lab:
conda install -c conda-forge nodejs
jupyter labextension install @jupyter-widgets/jupyterlab-manager
More information is available at the ipywidgets documentation.
From source
Download the source code by cloning the repository or by pressing ‘Download ZIP’ on this page. Install by navigating to the proper directory and running
python setup.py install
This can also be done in one line:
pip install https://github.com/ydataai/pandas-profiling/archive/master.zip