0

Help with Numpy Array. I am new to numpy amd completely lost on how to set up this solution. Any help is appreciated:)

In a matrix, or 2-d array X, the averages (or means) of the elements of rows is called row means. Task Given a 2D array, return the rowmeans. Input Format First line: two integers separated by spaces, the first indicates the rows of matrix X (n) and the second indicates the columns of X (p) Next n lines: values of the row in X Output Format An numpy 1d array of values rounded to the second decimal. 2 2 1.5 1 2 2.9 Sample Output [1.25 2.45]

15th Apr 2021, 1:33 PM
Javier
Javier  - avatar
1 ответ
+ 1
You can be refered to this code (not from me) : https://code.sololearn.com/cJUZFGJe3ucS/?ref=app
15th Apr 2021, 4:44 PM
Ervis Meta
Ervis Meta - avatar