MCPcopy Index your code
hub / github.com/plotly/plotly.py / _argmax

Function _argmax

plotly/shapeannotation.py:56–57  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

54
55
56def _argmax(x):
57 return sorted(enumerate(x), key=lambda t: t[1], reverse=True)[0][0]
58
59
60def _df_anno(xanchor, yanchor, x, y):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected