NEX
NEX

Reputation: 563

Unable to import Pandas Profiling

I am unable to import pandas profiling in jupyter notebook. Could someone please tell me whats wrong. enter image description here

Upvotes: 16

Views: 71899

Answers (12)

Mohit Singh
Mohit Singh

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

skytree
skytree

Reputation: 1100

Try this:

!pip install pandas-profiling[notebook]

Upvotes: 0

mohit kumar
mohit kumar

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

Avinash Parashar
Avinash Parashar

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

Dr Nisha Arora
Dr Nisha Arora

Reputation: 738

Sometimes it's an issue with the version. Try this

!pip install -U pandas-profiling

It's working for me.

Upvotes: 1

F J Patil
F J Patil

Reputation: 59

Run "pip install pandas-profiling" in Anaconda command prompt then import panadas_profiling, it will work

Upvotes: 0

AshishSingh007
AshishSingh007

Reputation: 91

There are multiple option to do so.

  1. Go to CMD & then type python -m pip install pandas-profiling

  2. Go to CMD & conda install -c conda-forge pandas-profiling=2.6.0

  3. import sys class in Jupyter note book & enter below line & enter !{sys.executable} -m pip install pandas-profiling Above is really cool to use.

  4. 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

Niranjan
Niranjan

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

Ankit Kumar Rajpoot
Ankit Kumar Rajpoot

Reputation: 5590

For Mac

pip install pandas-profiling

And For Ubuntu

!pip install pandas-profiling

Upvotes: 3

wordsforthewise
wordsforthewise

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

Tomas Giro
Tomas Giro

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

NEX
NEX

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

Related Questions