frictionlessdata/tabulator-py

Pass parameters to functions given to post_parse

cslovell opened this issue · 1 comments

Currently there are post_parse functions--very cool: post_parse=[multiply_by_two]

Can we pass arguments to them? For instance, post_parse=[multiply_by_x(2)]?

If this is supported it would be great to see an example.

roll commented

Hi, you can use functools.partial for it. E.g. partial(multiple_by_x, 2)

Please re-open if it didn't help