cinemascience / pycinema

cinema engine toolkit
Other
1 stars 4 forks source link

Tables: add table calculator filter #98

Closed dhrogers closed 2 months ago

dhrogers commented 9 months ago

Add table calculator filter that takes a table, an expression and a column name as input and uses the expression to extract columns from the input table, and create a new column with values created by executing the expression on each row of the table.

For example:

a*(b+c) would look for columns named 'a', 'b' and 'c' and perform the expression on each one of the set of row values, creating a new column value with the results.

The 'calc' branch contains a draft implementation of this filter.

dhrogers commented 2 months ago

Completed.