Installation

Using pip

PyPi Total Downloads PyPi Monthly Downloads PyPi Version

You can install using the pip package manager by running:

pip install -U pandas-profiling

If you are in a notebook (locally, LambdaLabs, 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 for the package to work.

Using conda

Conda Total Downloads Conda Version

A new conda environment containing the module can be created via:

conda env create -n pandas-profiling
conda activate pandas-profiling
conda install -c conda-forge pandas-profiling

Hint

Don’t forget to specify the conda-forge channel. Omitting it will not lead to an error, as an outdated package lives on the main channel and will be installed. See Common issues for details.

Widgets in Jupyter Notebook/Lab

For the Jupyter widgets extension (used for progress bars and the interactive widget-based report) to work, you might need to install and activate the corresponding extensions. This can be done via pip:

pip install pandas-profiling[notebook]
jupyter nbextension enable --py widgetsnbextension

Or via conda:

conda install -c conda-forge ipywidgets

In most cases, this will also automatically configure Jupyter Notebook and Jupyter Lab (>=3.0). For older versions of both or in more complex environment configurations, refer to the official ipywidgets documentation.

From source

Download the source code by cloning the repository or by clicking on ‘Download ZIP’. Install it by navigating to the uncompressed directory and running:

python setup.py install

This can also be done via the following one-liner:

pip install https://github.com/ydataai/pandas-profiling/archive/master.zip

Extras

The package declares some “extras”, sets of additional dependencies.

  • [notebook]: support for rendering the report in Jupyter notebook widgets.

  • [unicode]: support for more detailed Unicode analysis, at the expense of additional disk space.

Install these with e.g.

pip install -U pandas-profiling[notebook,unicode]