Errors running Pandas Profile Report

jlbrosnahan picture jlbrosnahan · Mar 24, 2020 · Viewed 12.4k times · Source

I'm trying to run a Profile Report for EDA in conda Jupyter NB, but keep getting errors.
Here is my code thus far:

    import pandas_profiling
    from pandas_profiling import ProfileReport

    profile = ProfileReport(data)

and

    profile = pandas_profiling.ProfileReport(data)

both of which produce:

TypeError: concat() got an unexpected keyword argument 'join_axes'

Research recommended upgrading to Pandas 1.0, which I'm using.

Also tried

    data.profile_report()        

AttributeError: 'DataFrame' object has no attribute 'profile_report'

Any tips on where I am going wrong?

Addendum...So I finally figured it out. Needed to install latest version of pandas-profiling in conda, which was 202003 version. Too easy.

Answer

Tanmey Rawal picture Tanmey Rawal · Jul 20, 2020

First I tried just running the command !pip install pandas-profiling but still was not working but then I found this !pip install pandas-profiling==2.7.1 command, now it is working for me.