SyntaxFix
Write A Post
Hire A Developer
Questions
I would go with
i = np.min(np.where(V >= x))
where V is vector (1d array), x is the value and i is the resulting index.
V
x
i