问题
I'm trying to use custom transform using a column at Wrangler Plugin.
Is there any documentation where I can find the list of functions to apply the custom transform? Also for a specific case, I wanna replace the value of a column based on IF-ELSE condition (or multiple cases). Is there any way of it?
回答1:
The custom transform supports JEXL, so you can find a list of functions to apply here: JEXL syntax. See the Conditional section of that page for information on how to do an if-else.
回答2:
You can use any of the Wrangler directives in a custom transform. The GitHub page for the plugin has a comprehensive list with examples. As Ali Anwar mentioned, directives support JEXL syntax. For an example have a look at set-column directive.
来源:https://stackoverflow.com/questions/55865647/how-to-use-custom-transform-in-wrangler