How can I calculate a weighted average column from two other columns that 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 a column (1.8 6.29 3.4)
to the table.
source
share