fbdesignpro / sweetviz

Visualize and compare datasets, target values and associations, with one line of code.
MIT License
2.88k stars 272 forks source link

[Feature] Order barcharts and frequency tables by index (natural order of values) #157

Open GegznaV opened 11 months ago

GegznaV commented 11 months ago

In some cases, the natural order of categories or discrete values matters more than the order of frequencies. So please, add a possibility to order categories not only by frequency but also by natural/defined order of values (i.e., by index).

In the example below I expect 0, 1, 2, 3, 4, and not:

image

ojassm commented 9 months ago

Hi @fbdesignpro - I would like to try resolving this feature request if you don't mind. Going through your code currently.