How to change the list of kdims of a holoviews Dataset

Viewed 663

I have a tabular data set and it has multiple columns that might be the key dimension for some plots.

ds = hv.Dataset(data_df, kdims=['time', 'forecasttime', 'group'], vdims=['speed'])

I could initial use a curve plot:

ds.to(hv.Curve, kdims=['time'], vdims=['speed'])

This would provide timeseries curves with a selector widget on 'forecasttime', 'group'.

What I would like to achieve is to plot a curve that ignores the key dimenion 'forecasttime', 'group'. While I could certain achieve the samething by defining my Dataset object in a different way like the following:

ds = hv.Dataset(data_df, kdims=['time'], vdims=['speed'])
ds.to(hv.Curve, kdims=['time'], vdims=['speed'])

I was hoping that I could remove a key dimension from the kdims of ds after it is defined. What could I do?

I am new to holoviews. Perhaps I am not using holoviews's Dataset object the correct way. I would also appreciate any advice.

1 Answers
Related