How to Install Pandas-Profiling on MacOS?
In this article, we will learn how to install Pandas-Profiling in Python on macOS.
Pandas profiling is an open-source Python module with which we can quickly do an exploratory data analysis with just a few lines of code. Besides, if this is not enough to convince us to use this tool, it also generates interactive reports in a web format that can be presented to any person, even if they don’t know to program.
In short, what pandas profiling does is save us all the work of visualizing and understanding the distribution of each variable. It generates a report with all the information easily available.
Installing Pandas-Profiling on MacOS:
Method 1: Using pip to install Pandas-Profiling Package
Follow the below steps to install the Pandas-Profiling package on macOS using pip:
Step 2: Check if pip3 and python3 are correctly installed.
python3 --version pip3 --version
Step 3: Upgrade your pip to avoid errors during installation.
pip3 install --upgrade pip
Step 4: Enter the following command to install Pandas-Profiling using pip3.
pip3 install Pandas-Profiling
Method 2: Using setup.py to install Pandas-Profiling
Follow the below steps to install the Pandas-Profiling package on macOS using the setup.py file:
Step 1: Download the latest source package of Pandas-Profiling for python3 from here.
curl https://files.pythonhosted.org/packages/03/60/a0031ba821b75e71b81bd8d43a3e03bc233697baca58790b506592900a97/pandas-profiling-3.1.0.tar.gz > pandas-profiling.tar.gz
Step 2: Extract the downloaded package using the following command.
tar -xzvf pandas-profiling.tar.gz
Step 3: Go inside the folder and Enter the following command to install the package.
Note: You must have developer tools for XCode MacOS installed in your system
cd pandas-profiling-3.1.0 python3 setup.py install
Verifying Pandas-Profiling installation on macOS:
Make the following import in your python terminal to verify if the installation has been done properly:
If there is any error while importing the module then is not installed properly.