'How to find median in Numpy 2d array with matching column
From my basic math I know the median salary is 40000 of all jobs listed but how would I obtain that using NumPy?
eg Find the salary of the median of all jobs listed
1st column = salary
2nd column = no. of jobs advertised
``` x = np.array([ [10000, 329], [20000, 329], [30000, 323], [40000, 310], [50000, 284], [60000, 232], [70000, 189], [80000, 130], [90000, 87], [100000, 71]] )
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
