Closed sehHeiden closed 3 years ago
Have you tried updating?
(https://pandas-profiling.github.io/pandas-profiling/docs/master/rtd/pages/installation.html)
I tried to use:
import sys
!{sys.executable} -m pip install -U pandas-profiling[notebook]
!jupyter nbextension enable --py widgetsnbextension
on Colab:
FileNotFoundError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/matplotlib/style/core.py in use(style) 113 try: --> 114 rc = rc_params_from_file(style, use_default_template=False) 115 _apply_style(rc)
7 frames
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.6/dist-packages/pandas_profiling/pandas_profiling.mplstyle'
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/matplotlib/style/core.py in use(style) 118 "{!r} not found in the style library and input is not a " 119 "valid URL or path; see
style.available
for list of " --> 120 "available styles".format(style)) 121 122OSError: '/usr/local/lib/python3.6/dist-packages/pandas_profiling/pandas_profiling.mplstyle' not found in the style library and input is not a valid URL or path; see
style.available
for list of available styles
and on DataLore:
A Jupyter widget could not be displayed because the widget state could not be found. This could happen if the kernel storing the widget is no longer available, or if the widget state was not saved in the notebook. You may be able to create the widget by running the appropriate cells.
When ProfileReport is being called.
Do these errors persist after restarting the kernel?
Seams like restarting the kernel after using:
import sys !{sys.executable} -m pip install -U pandas-profiling[notebook] !jupyter nbextension enable --py widgetsnbextension
did work reproduceably with Colab. Also did work once with DataLore, but I could not reproduce that. It would be great when the Colab examples could be updated.
What do you mean with reproducably? That you could reproduce the error or the results?
If this fixed your issue, we should definitely add it to the notebooks!
I also had the same issue in Google Colab. Meresmata's code snippet fixed the issue.
Does who solve this problem? I tried all about this issue. but I can't use profile function. Thank you
Running on Google Colab
I was trying to run the profiling on Google Colab with profile = ProfileReport(train_data). The problem was: this Error:
concat() got an unexpected keyword argument 'join_axes'
Therefore I tried all all the Google Colab examples in for the Profiling. Which either did not exist anymore or didn't work any. As the synthax has changed and:
from pandas_profiling.utils.cache import cache_file
doesn't seam to exist anymore.Sometimes on my machines the minimal parameter helped, but as with any other parameter added I get the Error:
_plot_histogram() got an unexpected keyword argument 'minimal'
Data: House Pricing csv from Kaggle
Additional context By the way running with DataLore also didn't work.