Reputation: 563
I am unable to import pandas profiling in jupyter notebook. Could someone please tell me whats wrong.
Upvotes: 16
Views: 71899
Reputation: 31
Edit: This package name will soon change to ydata-profiling, so we should use the new name. This is the announcement on their Pypi site:
⚠️ pandas-profiling package naming was changed. To continue profiling data use ydata-profiling instead!
pip install ydata-profiling
Then, we can import ProfileReport:
from ydata_profiling import ProfileReport
Upvotes: 0
Reputation: 11
you can run your anaconda prompt as administrator and do: conda intall -c anaconda pandas-profiling
While running it may ask for updating the present libraries, do "y" for it. After completion go to jupyter notebook and do "import pandas_profiling"
Hope it works!!
Upvotes: 0
Reputation: 31
If you are using Anaconda distribution then use this:
conda install -c conda-forge pandas-profiling
conda install -c conda-forge/label/cf201901 pandas-profiling
conda install -c conda-forge/label/cf202003 pandas-profiling
I was getting the same problem and it worked for me.
Upvotes: 3
Reputation: 738
Sometimes it's an issue with the version. Try this
!pip install -U pandas-profiling
It's working for me.
Upvotes: 1
Reputation: 59
Run "pip install pandas-profiling" in Anaconda command prompt then import panadas_profiling, it will work
Upvotes: 0
Reputation: 91
There are multiple option to do so.
Go to CMD & then type python -m pip install pandas-profiling
Go to CMD & conda install -c conda-forge pandas-profiling=2.6.0
import sys class in Jupyter note book & enter below line & enter !{sys.executable} -m pip install pandas-profiling Above is really cool to use.
Little manual but works most of the time. Download pandas-profile lib from https://pypi.org/project/pandas-profiling/#modal-close extract it and paste C:\anaconda\Lib\site-packages Restart your Anaconda & happy to use.
I hope this will help.
Upvotes: 1
Reputation: 67
conda install -c conda-forge pandas-profiling
Try this command to install
If it doesn't work then try pip install pandas-profiling
Upvotes: 2
Reputation: 5590
For Mac
pip install pandas-profiling
And For Ubuntu
!pip install pandas-profiling
Upvotes: 3
Reputation: 15777
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.
Upvotes: 5
Reputation: 4267
If you run jupyter notebook so:
python -m jupyter notebook
You can install the packages so:
python -m pip install pandas-profiling
I had a lot of trouble because the 'python' of the jupyter notebook when I ran only jupyter notebook
was another installation of python than the one on my bash.
If you run the module 'jupyter notebook' and the module 'pip' with the commands 'python -m' before, you ensure that you are using the same installation.
Upvotes: 1
Reputation: 563
Thanks a lot to all who tried to help me out. This worked.
import sys
!{sys.executable} -m pip install pandas-profiling
Upvotes: 19