Hello,

I often need to plot slightly different versions of my data depending on who’s requesting data from me. Is there a way to plot using hvplot such that I don’t have to keep saving out additional columns in dataframes?

E.g.,

Original Plot: probability as a decimal

demo_df = pd.DataFrame({‘value’:np.random.randn(50),‘probability’:np.random.rand(50)})

demo_df.hvplot.scatter(x=‘value’,y=‘probability’)

Desired: plotting the ‘probability’ as a percentage instead.

I tried…

percent = hv.dim(‘probability’)*100

demo_df.hvplot.scatter(x=‘value’,y=percent)

…but that didn’t work. Is there another simple/recommended way?