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

DashboardPanelDistribution TypeError #1390

Open
sara-vallejo opened this issue Dec 10, 2024 · 0 comments
Open

DashboardPanelDistribution TypeError #1390

sara-vallejo opened this issue Dec 10, 2024 · 0 comments

Comments

@sara-vallejo
Copy link

Hello,

I want to use the DashboardPanelDistribution in my dashboard and i have tested the following. In my report I set:

report = Report(metrics=`ColumnDistributionMetrics(column_name="type"), timestamp=datetime.datetime.now(), tags=[])

Then the project is set as:

project = ws.create_project(MY_PROJECT_NAME)
project.dashboard.add_panel(
   DashboardPanelDistribution(
      title="Type distribution",
      filter=ReportFilter(metadata_values={}, tag_values=[]),
      value=PanelValue(
         field_path=ColumnDistribution.Metric.fields.current,
         metric_id="ColumnDistributionMetric",
         metric_args={"column_name.name": "type"}
      ),
      barmode=HistBarMode.STACK
)

then I add the reports as:

ws.add_report(report)

However, I get the following error when running evidently ui:
TypeError: Subscripted generics cannot be used with class and instance checks

My setup is:

  • Python 3.9.2
  • evidently==0.4.38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant