lux icon indicating copy to clipboard operation
lux copied to clipboard

[BUG] Redundant axes clause leads to error

Open dorisjlee opened this issue 3 years ago • 0 comments

Describe the bug For bar charts, if there are more than two of the same attributes specified, then reset_index in execute_aggregate throws an error.

To Reproduce

df = pd.read_csv("https://github.com/lux-org/lux-datasets/tree/master/data/airbnb_nyc.csv?raw=True")
from lux.vis.Vis import Vis
vis = Vis([lux.Clause("room_type",channel="y"), "number_of_reviews",lux.Clause("room_type",channel="color")], df)

image

dorisjlee avatar Feb 28 '21 03:02 dorisjlee