ydataai / ydata-profiling

1 Line of code data quality profiling & exploratory data analysis for Pandas and Spark DataFrames.
https://docs.profiling.ydata.ai
MIT License
12.52k stars 1.68k forks source link

Once you use minimal=True in a Jupyter Notebook, you cannot go back to minimal=False #720

Closed nateGeorge closed 3 years ago

nateGeorge commented 3 years ago

Describe the bug

If you run ProfileReport() with minimal=True in a Jupyter Notebook, when you run ProfileReport again it does not show correlations or anything besides the 'variables' and 'overview' tabs. You can specify each separate section to run (e.g. correlations={...}) but it would be better to have it default to minimal=False, or if you specify minimal=False, it should show everything again.

To Reproduce

In a Jupyter Notebok:

import seaborn as sns
from pandas_profiling import ProfileReport

iris = sns.load_dataset("iris")

ProfileReport(iris, minimal=True)

# in a new cell
ProfileReport(iris)

Version information:

Click to expand Version information

``` # Name Version Build Channel argcomplete 1.10.0 pypi_0 pypi argon2-cffi 20.1.0 py38he774522_1 arrow-cpp 0.15.1 py38hb429649_5 async_generator 1.10 py_0 attrs 20.3.0 pyhd3eb1b0_0 autopep8 1.5.5 pyh44b312d_0 conda-forge autoviz 0.0.81 pypi_0 pypi aylien-apiclient 0.7.0 pypi_0 pypi backcall 0.2.0 py_0 beautifulsoup4 4.8.0 pypi_0 pypi blas 1.0 mkl bleach 3.2.1 py_0 boost-cpp 1.67.0 hfa6e2cd_4 bootstrap-stat 0.2.4.2 pypi_0 pypi bootstrapped 0.0.2 pypi_0 pypi brotli 1.0.9 ha925a31_2 brotli-python 1.0.9 py38h82bb817_2 brotlipy 0.7.0 py38h2bbff1b_1003 bzip2 1.0.8 he774522_0 c-ares 1.17.1 h2bbff1b_0 ca-certificates 2020.12.5 h5b45459_0 conda-forge cairo 1.16.0 h63a05c6_1001 conda-forge certifi 2020.12.5 py38haa244fe_1 conda-forge cffi 1.14.4 py38hcd4344a_0 chardet 3.0.4 pypi_0 pypi click 7.1.2 py_0 colorama 0.4.4 pyhd3eb1b0_0 confuse 1.4.0 pyhd3eb1b0_0 cryptography 3.3.1 py38hcd4344a_0 cycler 0.10.0 py38_0 dabest 0.3.1 pypi_0 pypi dash 1.18.1 pyhd3eb1b0_0 dash-bootstrap-components 0.11.1 pyhd3deb0d_0 conda-forge dash-core-components 1.3.1 py_0 dash-daq 0.5.0 pyh9f0ad1d_1 conda-forge dash-html-components 1.0.1 py_0 dash-renderer 1.1.2 py_0 dash-table 4.4.1 py_0 dash_colorscales 0.0.4 pyh9f0ad1d_0 conda-forge decorator 4.4.2 py_0 defusedxml 0.6.0 py_0 dill 0.3.3 pypi_0 pypi docx2txt 0.8 pypi_0 pypi double-conversion 3.1.5 ha925a31_1 dtale 1.29.1 pyhd3deb0d_0 conda-forge ebooklib 0.17.1 pypi_0 pypi entrypoints 0.3 py38_0 et_xmlfile 1.0.1 py_1001 extract-msg 0.23.1 pypi_0 pypi flask 1.1.2 py_0 flask-compress 1.8.0 pyhd3eb1b0_0 fontconfig 2.13.1 h1989441_1004 conda-forge freetype 2.10.4 hd328e21_0 future 0.18.2 py38_1 fuzzywuzzy 0.18.0 pyhd8ed1ab_0 conda-forge gettext 0.19.8.1 h1a89ca6_1005 conda-forge gflags 2.2.2 ha925a31_0 glog 0.4.0 h33f27b4_0 grpc-cpp 1.26.0 h351948d_0 htmlmin 0.1.12 pyhd3eb1b0_1 httplib2 0.18.1 pypi_0 pypi icc_rt 2019.0.0 h0cc432a_1 icu 58.2 ha925a31_3 idna 2.10 py_0 imagehash 4.2.0 pyhd3eb1b0_0 imapclient 2.1.0 pypi_0 pypi importlib-metadata 2.0.0 py_1 importlib-resources 5.1.0 pypi_0 pypi importlib_metadata 2.0.0 1 intel-openmp 2020.2 254 ipdb 0.13.4 pyhd3deb0d_0 conda-forge ipykernel 5.3.4 py38h5ca1d4c_0 ipympl 0.5.8 py_0 ipython 7.19.0 py38hd4e2768_0 ipython_genutils 0.2.0 pyhd3eb1b0_1 ipywidgets 7.6.0 pyhd3eb1b0_1 itsdangerous 1.1.0 py_0 jdcal 1.4.1 py_0 jedi 0.17.2 py38haa244fe_1 conda-forge jinja2 2.11.2 py_0 joblib 1.0.0 pyhd3eb1b0_0 jpeg 9d h8ffe710_0 conda-forge json5 0.9.5 py_0 jsonschema 3.2.0 py_2 jupyter 1.0.0 pypi_0 pypi jupyter-console 6.2.0 pypi_0 pypi jupyter_client 6.1.7 py_0 jupyter_contrib_core 0.3.3 py_2 conda-forge jupyter_contrib_nbextensions 0.5.1 py38h32f6830_1 conda-forge jupyter_core 4.7.0 py38haa95532_0 jupyter_highlight_selected_word 0.2.0 py38h32f6830_1002 conda-forge jupyter_latex_envs 1.4.6 py38h32f6830_1001 conda-forge jupyter_nbextensions_configurator 0.4.1 py38h32f6830_2 conda-forge jupyterlab 2.2.6 py_0 jupyterlab-widgets 1.0.0 pypi_0 pypi jupyterlab_pygments 0.1.2 py_0 jupyterlab_server 1.2.0 py_0 kiwisolver 1.3.0 py38hd77b12b_0 krb5 1.17.2 hbae68bd_0 conda-forge libblas 3.9.0 1_h8933c1f_netlib conda-forge libboost 1.67.0 hfd51bdf_4 libcblas 3.9.0 3_hd5c7e75_netlib conda-forge libcurl 7.71.1 h4b64cdc_8 conda-forge libffi 3.3 h0e60522_2 conda-forge libglib 2.66.4 h48f9de8_2 conda-forge libiconv 1.16 he774522_0 conda-forge liblapack 3.9.0 3_hd5c7e75_netlib conda-forge libpng 1.6.37 h2a8f88b_0 libprotobuf 3.11.2 h7bd577a_0 libsodium 1.0.18 h62dcd97_0 libssh2 1.9.0 hb06d900_5 conda-forge libtiff 4.1.0 h56a325e_0 libxml2 2.9.10 hf5bbc77_3 conda-forge libxslt 1.1.33 h65864e5_2 conda-forge llvmlite 0.34.0 py38h1a82afc_4 lqrt 0.3.3 pypi_0 pypi lxml 4.6.2 py38h292cb97_1 conda-forge lz4 2.2.1 py38he774522_0 lz4-c 1.8.1.2 h2fa13f4_0 m2w64-gcc-libgfortran 5.3.0 6 m2w64-gcc-libs 5.3.0 7 m2w64-gcc-libs-core 5.3.0 7 m2w64-gmp 6.1.0 2 m2w64-libwinpthread-git 5.0.0.4634.697f757 2 markupsafe 1.1.1 py38he774522_0 matplotlib 3.3.2 haa95532_0 matplotlib-base 3.3.2 py38hba9282a_0 matplotlib-label-lines 0.3.8 pypi_0 pypi missingno 0.4.2 pyhd3eb1b0_1 mistune 0.8.4 py38he774522_1000 mkl 2020.2 256 mkl-service 2.3.0 py38h196d8e1_0 mkl_fft 1.2.0 py38h45dec08_0 mkl_random 1.1.1 py38h47e9c7a_0 msys2-conda-epoch 20160418 1 multiprocess 0.70.11.1 pypi_0 pypi nbclient 0.5.1 py_0 nbconvert 6.0.7 py38_0 nbformat 5.0.8 py_0 nest-asyncio 1.4.3 pyhd3eb1b0_0 networkx 2.5 py_0 nltk 3.4.4 py_0 conda-forge notebook 6.1.6 py38haa95532_0 numba 0.51.2 py38hf9181ef_1 numpy 1.19.2 py38hadc3359_0 numpy-base 1.19.2 py38ha3acd2a_0 olefile 0.46 py_0 openjpeg 2.4.0 h48faf41_0 conda-forge openpyxl 3.0.5 py_0 openssl 1.1.1j h8ffe710_0 conda-forge packaging 20.8 pyhd3eb1b0_0 pandas 1.1.5 py38hf11a4ad_0 pandas-profiling 2.9.0 pyhd3eb1b0_0 pandoc 2.11 h9490d1a_0 pandocfilters 1.4.3 py38haa95532_1 parso 0.7.0 py_0 pathos 0.2.7 pypi_0 pypi patsy 0.5.1 py38_0 pcre 8.44 ha925a31_0 conda-forge pdfminer-six 20181108 pypi_0 pypi pdfminer.six 20201018 py_2 conda-forge phik 0.10.0 pyhd3eb1b0_0 pickleshare 0.7.5 pyhd3eb1b0_1003 pillow 8.0.1 py38h4fa10fc_0 pip 20.3.3 py38haa95532_0 pixman 0.38.0 hfa6e2cd_1003 conda-forge plotly 4.14.1 pyhd3eb1b0_0 poppler 21.01.0 h20e2fe3_0 conda-forge poppler-data 0.4.10 0 conda-forge pox 0.2.9 pypi_0 pypi ppft 1.6.6.3 pypi_0 pypi ppscore 1.1.1 pyhd3deb0d_0 conda-forge praw 7.0.0 py_0 conda-forge prawcore 1.3.0 pyh9f0ad1d_0 conda-forge prometheus_client 0.9.0 pyhd3eb1b0_0 prompt-toolkit 3.0.8 py_0 pyarrow 0.15.1 py38h47e9c7a_0 pycodestyle 2.6.0 pyh9f0ad1d_0 conda-forge pycparser 2.20 py_2 pycryptodome 3.9.9 pypi_0 pypi pygments 2.7.3 pyhd3eb1b0_0 pymupdf 1.18.6 pypi_0 pypi pyopenssl 20.0.1 pyhd3eb1b0_1 pyparsing 2.4.7 py_0 pyqt 5.9.2 py38ha925a31_4 pyrsistent 0.17.3 py38he774522_0 pysocks 1.7.1 py38haa95532_0 python 3.8.5 h5fd99cc_1 python-dateutil 2.8.1 py_0 python-docx 0.8.10 py_0 conda-forge python-levenshtein 0.12.2 py38h294d835_0 conda-forge python-magic-bin 0.4.14 pypi_0 pypi python-pptx 0.6.18 pypi_0 pypi python_abi 3.8 1_cp38 conda-forge pytz 2020.5 pyhd3eb1b0_0 pywavelets 1.1.1 py38he774522_2 pywin32 227 py38he774522_1 pywinpty 0.5.7 py38_0 pyyaml 5.3.1 py38he774522_1 pyzmq 20.0.0 py38hd77b12b_1 qt 5.9.7 vc14h73c81de_0 qtconsole 5.0.2 pypi_0 pypi qtpy 1.9.0 pypi_0 pypi re2 2020.11.01 hd77b12b_1 regex 2020.11.13 py38h2bbff1b_0 requests 2.25.1 pyhd3eb1b0_0 retrying 1.3.3 py_2 scikit-learn 0.23.2 py38h47e9c7a_0 scikit-posthocs 0.6.6 pypi_0 pypi scipy 1.6.0 py38h5f893b4_0 conda-forge seaborn 0.11.1 pyhd3eb1b0_0 send2trash 1.5.0 pyhd3eb1b0_1 setuptools 51.0.0 py38haa95532_2 sip 4.19.13 py38ha925a31_0 six 1.12.0 pypi_0 pypi snappy 1.1.8 h33f27b4_0 sortedcontainers 2.3.0 pypi_0 pypi soupsieve 2.1 pypi_0 pypi speechrecognition 3.8.1 pypi_0 pypi sqlalchemy 1.3.21 py38h2bbff1b_0 sqlite 3.33.0 h2a8f88b_0 squarify 0.4.3 py_0 conda-forge statsmodels 0.12.1 py38h2bbff1b_0 strsimpy 0.1.9 pyh9f0ad1d_0 conda-forge sweetviz 2.0.6 pypi_0 pypi tangled-up-in-unicode 0.0.6 pyhd3eb1b0_0 terminado 0.9.1 py38_0 testpath 0.4.4 py_0 textblob 0.15.3 py_0 conda-forge textract 1.6.3 pypi_0 pypi threadpoolctl 2.1.0 pyh5ca1d4c_0 thrift-cpp 0.11.0 h1ebf3fd_3 tika 1.24 pyh9f0ad1d_0 conda-forge tk 8.6.10 he774522_0 toml 0.10.2 pyhd8ed1ab_0 conda-forge tornado 6.1 py38h2bbff1b_0 tqdm 4.55.0 pyhd3eb1b0_0 traitlets 5.0.5 py_0 tzlocal 1.5.1 pypi_0 pypi update_checker 0.18.0 pyh9f0ad1d_0 conda-forge uriparser 0.9.3 h33f27b4_1 urllib3 1.26.2 pyhd3eb1b0_0 vc 14.2 h21ff451_1 visions 0.5.0 pyhd3eb1b0_0 vs2015_runtime 14.27.29016 h5e58377_2 wcwidth 0.2.5 py_0 webencodings 0.5.1 py38_1 websocket-client 0.57.0 py38haa244fe_4 conda-forge werkzeug 1.0.1 py_0 wheel 0.36.2 pyhd3eb1b0_0 widgetsnbextension 3.5.1 py38_0 win_inet_pton 1.1.0 py38haa95532_0 wincertstore 0.2 py38_0 winpty 0.4.3 4 wordcloud 1.8.1 py38h294d835_1 conda-forge xarray 0.16.2 pyhd3eb1b0_0 xgboost 1.3.3 pypi_0 pypi xlrd 1.2.0 pypi_0 pypi xlsxwriter 1.3.7 pypi_0 pypi xz 5.2.5 h62dcd97_0 yaml 0.2.5 he774522_0 zeromq 4.3.3 ha925a31_3 zipp 3.4.0 pyhd3eb1b0_0 zlib 1.2.11 h62dcd97_4 zstd 1.3.7 h508b16e_0 ```

sbrugman commented 3 years ago

Will be fixed by the report-specific config intoduced in #751