You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Python UDF interface is extremely strong. But it does lack one very valuable example for example using functools.partial. I think you want to show the end-user the ability to provide arguments directly from Python, for example, passing a context without using a global variable. The example below shows:
How to provide an actual function and call it within the UDF.
How to provide a predfined variable and use it within the UDF.
Notice that within, SQL can influence the UDF's output.
The Python UDF interface is extremely strong. But it does lack one very valuable example for example using functools.partial. I think you want to show the end-user the ability to provide arguments directly from Python, for example, passing a context without using a global variable. The example below shows:
Maybe we need some discussion, therefore I did not create a pull request yet.
The text was updated successfully, but these errors were encountered: