question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pandas Profiling KeyError

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
anhailingcommented, Jun 18, 2020

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.

0reactions
anhailingcommented, Jun 17, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found