rapidsai / cuxfilter

GPU accelerated cross filtering with cuDF.
https://docs.rapids.ai/api/cuxfilter/stable/
Apache License 2.0
272 stars 67 forks source link

Add str support to dropdown #529

Closed AjayThorve closed 1 year ago

AjayThorve commented 1 year ago

This small PR adds str column support to drop_down and multi_select widgets, along with charts.bar, which already supports str columns directly since 23.08

import cudf
from cuxfilter import charts, DataFrame

cux_df = DataFrame.from_dataframe(cudf.DataFrame({'val': ['A', 'B', 'C', 'D', 'E']}))
multi_select = charts.multi_select('val')

d = cux_df.dashboard([multi_select])
# View the individual multi_select chart part of the dashboard d
multi_select.view(height=200)

image

cc @exactlyallan

AjayThorve commented 1 year ago

/merge