cardillo / joinery

Data frames for Java
https://joinery.sh
GNU General Public License v3.0
697 stars 167 forks source link

Creating a new column based on existing columns + function #59

Closed chris-ch closed 5 years ago

chris-ch commented 7 years ago

The function provided as argument would be iterated through the rows and its output would be stored in the newly created column.

I can think of many use cases but the one why I am posting is: creating mid prices from bid and ask columns for time series of prices.

Ideally the iterated function would accept the whole current row as argument. The row itself would be a Map so as to be able to access individual items using the column name, not using their position.

cardillo commented 5 years ago

See #70. Row is a list, not a map, but otherwise works as requested.