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

Bug Report: DispatchError: Function <code object pandas_missing_bar #1566

Open
3 tasks done
kalverra opened this issue Mar 22, 2024 · 2 comments
Open
3 tasks done

Bug Report: DispatchError: Function <code object pandas_missing_bar #1566

kalverra opened this issue Mar 22, 2024 · 2 comments
Labels
information requested ❔ Cannot reproduce, waiting for minimum reproduction details.

Comments

@kalverra
Copy link

Current Behaviour

  • Attempt to profile a basic df
  • Receive the following error
DispatchError: Function <code object pandas_missing_bar at 0x16a4d4190, file "<filepath>/.venv/lib/python3.9/site-packages/ydata_profiling/model/pandas/missing_pandas.py", line 13>

Expected Behaviour

Profile should complete successfully.

Data Description

Date Product SKU Quantity
2023-06-07 Actions Compute - UBUNTU 469.0000
2023-06-07 Actions Compute - UBUNTU 60.0000
2023-06-07 Actions Compute - UBUNTU 47.0000
2023-06-07 Actions Compute - UBUNTU 56.0000
2023-06-07 Actions Compute - UBUNTU 47.0000

Code that reproduces the bug

import pandas as pd
import plotly.express as px
from ydata_profiling import ProfileReport
pd.options.plotting.backend = "plotly"

df = pd.read_csv("data.csv")
profile = ProfileReport(df, correlations={"auto": {"calculate": False}})
profile.to_file("profile.html")

pandas-profiling version

4.7.0

Dependencies

Python 3.9.6
pandas==2.2.1
plotly==5.20.0

OS

MacOS Sonoma 14.4

Checklist

  • There is not yet another bug report for this issue in the issue tracker
  • The problem is reproducible from this bug report. This guide can help to craft a minimal bug report.
  • The issue has not been resolved by the entries listed under Common Issues.
@kalverra
Copy link
Author

Trace and visual

image

@fabclmnt
Copy link
Contributor

fabclmnt commented Mar 27, 2024

Hi @kalverra ,

this is a known issue. Please check the solution in this thread: #1071

In a nutshell your pandas plotting default is set to plotly (which is not supported) instead of matplotlib.

Let me know if solves your issue.

@fabclmnt fabclmnt added information requested ❔ Cannot reproduce, waiting for minimum reproduction details. and removed needs-triage labels Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
information requested ❔ Cannot reproduce, waiting for minimum reproduction details.
Projects
None yet
Development

No branches or pull requests

3 participants