I'm new to Python and trying to use Holoviews to plot the selections from two dropdowns against each other. I have data in a csv file that looks like this:
time col1 col2 col3 col4
0.01 1.9 .023 138 9.10
0.02 2.3 .024 155 9.75
0.03 3.0 .027 162 10.3
I want to be able to select any two columns and plot them against each other: col1 against col2, col3 against time, etc. I've figured out how to make ONE dropdown and plot any column against one predefined key dimension, but I can't figure out how to make a second dropdown to let me change the kdim.
My code so far is:
df = pd.read_csv("data.csv")
cols = list(df.columns)
hv.HoloMap({column: hv.Curve(df, 'time', column) for column in cols}).opts(framewise = True)