Pandas Profiling KeyError
See original GitHub issueDescribe the bug When running below code, running into error KeyError: ‘Requested level (var1) does not match index name (None)’. I created a new environment with only python=3.7.7, jupyterlab=2.1.4, pandas-profiling=2.8.0. However the pip freeze reported pandas-profilling==2.3.0. I used conda install -c conda-forge pandas-profiling.
To Reproduce
Version information:
Additional context
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
Pandas Profiling KeyError · Issue #498 - GitHub
When running below code, running into error KeyError: 'Requested level (var1) does not match index name (None)'. I created a new environment ...
Read more >Pandas Profiling KeyError - Stack Overflow
When running below code, running into error KeyError: 'Requested level (var1) does not match index name (None)'. I used python=3.7, jupyterlab= ...
Read more >pandas profiling getting error | Data Science and ... - Kaggle
Install the latest version of pandas-profiling using: "pip install pandas-profiling". Import the package. This should resolve the KeyError. replyReply.
Read more >KeyError: 'Requested level (var1) does not match index name ...
I am receiving KeyError: 'Requested level (var1) does not match index name (None)' . , on running the below code. pandas_profiling version =...
Read more >keyerror in pandas Code Example - Code Grepper
Answers related to “keyerror in pandas” ... how to convert datasets into pandas dataframes · pandas profiling · create random dataframe pandas ·...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I figured it out. I pip installed a package xxx which used pandas-profiling=2.3.0 as prerequisite. I never pip uninstalled the package before I removed the environment. Somehow, it messed the pandas-profiling installation. However, pip install https://github.com/pandas-profiling/pandas-profiling/archive/master.zip still worked. After I pip uninstalled this package, both conda install and regular pip install worked.
I reinstalled miniconda on my laptop and only set up one environment to test this. The same error existed. I did the exact same thing on a windows server, it worked. Any other thoughts? @sbrugman