How can I calculate a column of weighted averages from 2 other columns that both have multiple entries per row in kdb?
For example, given the following table:
T:([]sym:`a`b`c;size:(2 8;5 2 10;3 7);price:(1 2;1 1 10;2 4))
I would like to add the column (1.8 6.29 3.4) to the table.