MCPcopy Create free account
hub / github.com/DVampire/FinAgent / my_rank

Function my_rank

finagent/processor/processor.py:37–38  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

35 return content
36
37def my_rank(x):
38 return pd.Series(x).rank(pct=True).iloc[-1]
39
40def cal_news(df):
41 df["title"] = df["title"].fillna("").str.replace("\n", " ").replace("\r", " ").replace("\t", " ")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected