Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

importing ProfileReport seems to interfere with pandas plotting #837

Open
raybellwaves opened this issue Sep 28, 2021 · 2 comments
Open
Labels
bug 🐛 Something isn't working Hacktoberfest 🎆 https://hacktoberfest.digitalocean.com/

Comments

@raybellwaves
Copy link

raybellwaves commented Sep 28, 2021

Describe the bug

Running

from pandas_profiling import ProfileReport
import pandas as pd

seems to interfere with pandas plotting

To Reproduce

Run this as a cell in jupyter lab (may be same as jupyter notebook)

import pandas as pd
from pandas_profiling import ProfileReport

df = pd.DataFrame(data={"col1": [1, 2]})
df.plot()

Screen Shot 2021-09-28 at 5 02 21 PM

Now the same but comment out pandas_profiling

Screen Shot 2021-09-28 at 5 03 39 PM

Version information:

pandas-profiling 3.1.0

@sbrugman sbrugman added the bug 🐛 Something isn't working label Oct 2, 2021
@sbrugman
Copy link
Collaborator

sbrugman commented Oct 2, 2021

Good catch. Might have to do with the setting of the backend in 3.1.0.

Two ways of checking this: check if the same happens with 3.0.0 or set the backend of matplotlib after importing PP.

@sbrugman sbrugman added the Hacktoberfest 🎆 https://hacktoberfest.digitalocean.com/ label Oct 3, 2021
@raybellwaves
Copy link
Author

raybellwaves commented Oct 11, 2021

I can confirm the same does not happen on 3.0.0. An easy place to verify is a binder link e.g.
https://mybinder.org/v2/gh/scikit-learn/scikit-learn/1.0.X?urlpath=lab/tree/notebooks/auto_examples/release_highlights/plot_release_highlights_1_0_0.ipynb

!conda install -c conda-forge pandas-profiling --y

import pandas as pd
from pandas_profiling import ProfileReport

df = pd.DataFrame(data={"col1": [1, 2]})
df.plot()

Couldn't get 3.0.0 installed in this env.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working Hacktoberfest 🎆 https://hacktoberfest.digitalocean.com/
Projects
None yet
Development

No branches or pull requests

2 participants