Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/arrow
/ nullary_func
Function
nullary_func
python/pyarrow/tests/test_udf.py:207–209 ·
view source on GitHub ↗
(context)
Source
from the content-addressed store, hash-verified
205
Register a nullary scalar function.
206
""
"
207
def
nullary_func(context):
208
return
pa.array([42] * context.batch_length, type=pa.int64(),
209
memory_pool=context.memory_pool)
210
211
func_doc = {
212
"summary"
:
"random function"
,
Callers
nothing calls this directly
Calls
1
array
Method · 0.45
Tested by
no test coverage detected