In this article, we will look into ways of installing the Pandas Profiling package in Python.
Prerequisites:
- Python
- PIP or Conda (Depending upon preference)
For PIP Users:
Pip users can just open up the command prompt and use the below command to install the Pandas profiling package in python:
pip install pandas-profiling
The following message will be shown once the installation is completed:
For Conda Users:
Conda users can open up the Anaconda Power Shell Prompt and use the below command to install the pandas profiling package in python:
conda install -c anaconda pandas-profiling
The following message will be shown once the installation is completed:
Verifying the Installation:
You can use the below code to verify your installation. Make sure to add a sample .csv file having some data to check the installation and replace the Geeks.csv file in the below code.
Python3
#import the packages import pandas as pd import pandas_profiling # read the file df = pd.read_csv( 'Geeks.csv' ) # run the profile report profile = df.profile_report(title = 'Pandas Profiling Report' ) |
Output: