Create 2 Dimensional Player List consist of Player Name and Score
player =[["john",90],["Brian", 70],["Jane",69],["Aaron",57],["Jone",78]]
We need to do some list calculation so import numpy
import numpy as np
Get the Player Average Call (1) First we need to select all the rows (2) the Select column (1) to get the Average
np_player = np.array(player)
np_player
array([['john', '90'], ['Brian', '70'], ['Jane', '69'], ['Aaron', '57'], ['Jone', '78']], dtype='<U11')
Select all Row one to Connect string to float
np_player[:,1]
array(['90', '70', '69', '57', '78'], dtype='<U11')
np_player_2 = np_player[:,1].astype(float)
np_player_2
array([90., 70., 69., 57., 78.])
Get the Mean Value
means= np.mean(np_player_2)
means
72.8
Get Meadian Value
median = np.median(np_player_2)
median
70.0
Get Standard Deviation
stds = np.std(np_player_2)
stds
10.906878563548785