evidently icon indicating copy to clipboard operation
evidently copied to clipboard

Allow custom label ordering in plot for categorical data

Open AvanBerne opened this issue 2 years ago • 1 comments

Using Evidently 0.4.0 on Databricks runtime 10.4 Looking at outputs for ColumnSummaryMetric and ColumnDriftMetric

When generating results plots for categorical data, the labels on the x-axis are ordered by associated value. I would like to order the results by defined category order.

I have tried assigning category order to the Pandas series that is being evaluated, but that ordering is not carried through to the plot. Would it be possible to include a flag that lets Evidently know to use the Pandas categorical ordering in the output of the plot?

AvanBerne avatar Aug 11 '23 08:08 AvanBerne

Thanks for the feature request @AvanBerne!

I am afraid we won't be able to address this in the short term. The reason is that this is a type of parameter can work for all metrics and tests; and library-wide implementation for all checks and output formats will require significant work.

Hopefully we'll be able to address it in the future.

elenasamuylova avatar Aug 29 '23 17:08 elenasamuylova