Pandas Profiling

Hi,

I just noted that the profiling report does not display anymore.

For instance if I run

streamlit run https://raw.githubusercontent.com/okld/streamlit-pandas-profiling/master/examples/streamlit_pandas_profiling_demo.py

I get nothing on my screen (except a message “Generating profile report”) but no actual report. On my Powershell window I get this error message:

Summarize dataset: 74%|██████████████████████████████▏ | 14/19 [00:08<00:03, 1.32it/s, Get missing diagrams]2020-12-30 19:18:06.548 NumExpr defaulting to 4 threads.
Summarize dataset: 100%|████████████████████████████████████████████████████| 19/19 [00:08<00:00, 2.17it/s, Completed]
Generate report structure: 100%|█████████████████████████████████████████████████████████| 1/1 [00:02<00:00, 2.52s/it]
Render HTML: 100%|███████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.34it/s]
2020-12-30 19:18:11.747 Uncaught exception GET /component/streamlit_pandas_profiling.pandas_profiling/fonts/IBM_Plex_Sans/IBMPlexSans-Regular.ttf (::1)
HTTPServerRequest(protocol=‘http’, host=‘localhost:8501’, method=‘GET’, uri=‘/component/streamlit_pandas_profiling.pandas_profiling/fonts/IBM_Plex_Sans/IBMPlexSans-Regular.ttf’, version=‘HTTP/1.1’, remote_ip=‘::1’)
Traceback (most recent call last):
File “c:\users\toshiba\anaconda3\lib\site-packages\tornado\web.py”, line 1701, in _execute
result = method(*self.path_args, **self.path_kwargs)
File “c:\users\toshiba\anaconda3\lib\site-packages\streamlit\components\v1\components.py”, line 324, in get
contents = file.read()
File “c:\users\toshiba\anaconda3\lib\encodings\cp1252.py”, line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: ‘charmap’ codec can’t decode byte 0x9d in position 210: character maps to
2020-12-30 19:18:11.752 500 GET /component/streamlit_pandas_profiling.pandas_profiling/fonts/IBM_Plex_Sans/IBMPlexSans-Regular.ttf (::1) 7.00ms

It used to run fine.

Many thanks!

Fabio

1 Like

cc’ing @okld as he created the Profiling Component :slight_smile:

Hello @Charly_Wargnier,

You have a set_variable() function to change reports settings. Here are some examples: Advanced Usage — pandas-profiling 2.9.0 documentation (pandas-profiling.github.io)

1 Like

Hello @Fabio, @felixdasilva,

I’ve released a new version fixing the issue.

Thank you Synode! I’ll check that out! :slight_smile:

works. You just need to uninstall and re-install.

Thanks!

1 Like


hi I’m facing same kind off issue, my app is running successfully in my local machine but when I’m trying to deploy its throwing the error, please help me out

yes i installed its running successfully in my local system, but while deploying its showing error

I am having the same issue @Pratap517 :(. It works sometimes in Streamlit Sharing but does not work most of the times. Can someone please help solve this bug

I want to deploy my work on streamlit cloud and i keep getting error that ModuleNotFoundError: No module named ‘streamlit_pandas_profiling’, And i have streamlit_pandas_profiling import already also in my requirement.txt. Below are the screenshots



Hey @Onyinye91-ctrl

Hope this helps, have a nice day :balloon:
Fanilo

Hey @andfanilo Thanks for the assistance. I implemented the changes as you mentioned but i got a more bigger error. Here is the link to my github



and below is the screenshots