Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/arrow
/ pct_rank
Function
pct_rank
python/pyarrow/tests/test_udf.py:335–337 ·
view source on GitHub ↗
(ctx, x)
Source
from the content-addressed store, hash-verified
333
Register a vector function
334
""
"
335
def
pct_rank(ctx, x):
336
# copy here to get around pandas 1.0 issue
337
return
pa.array(x.to_pandas().copy().rank(pct=True))
338
339
func_name =
"y=pct_rank(x)"
340
doc = empty_udf_doc
Callers
nothing calls this directly
Calls
2
copy
Method · 0.80
array
Method · 0.45
Tested by
no test coverage detected