How to use Custom Transform in Wrangler?

我是研究僧i 提交于 2020-06-27 17:15:47

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!