Average of rows - code project 8 from data science | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Average of rows - code project 8 from data science

I've been working on the average row code project in the data science course. my code prints the right output for the case test 2, however it does not pass. below are my source code and the link to the code project n, p = [int(x) for x in input().split()] matrix = [[0.00 for i in range(p)] for j in range(n)] import numpy as np arr1 = np.array(matrix, float) for i in range(n): arr1[i][:p] = input().split() print(arr1.mean(axis = 1).round(2)) link:https://www.sololearn.com/learning/eom-project/1093/111 ***********Thanks in advance for the Help*******************

7th Aug 2022, 2:02 PM
Jehoshaphat Obol
Jehoshaphat Obol - avatar
3 Answers
+ 2
There is a bug.. Please wait for update from SL. or else use list instead of numpy like by @AJ solution in these one of thread... https://www.sololearn.com/discuss/3069690/?ref=app https://www.sololearn.com/discuss/3069554/?ref=app https://www.sololearn.com/discuss/3069490/?ref=app
7th Aug 2022, 2:05 PM
Jayakrishna 🇮🇳
+ 1
Jehoshaphat Obol the module project 8 data science playground should be fixed.
9th Aug 2022, 1:26 PM
BroFar
BroFar - avatar
+ 1
@BroFar thanks 🚀
10th Aug 2022, 2:02 PM
Jehoshaphat Obol
Jehoshaphat Obol - avatar