1

Is there a function in the numpy API that finds the maximum values of an array like this?

def fun_max(array,axis=None): return [max(array[:i+1]) for i in range(len(array))] a=[3,4,2,1,5] print(fun_max(a)) 

output:

[3,4,4,4,5] 
0

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.