Numpy array method for median? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Numpy array method for median?

so .mean() returns the arithmetic average. Is there a method that returns the median? I tried arr.median() but got a no attribute error.

13th Oct 2020, 11:33 AM
Nassim Abed
Nassim Abed - avatar
1 Answer