Open Techwizard987 opened 2 years ago
Look at the below code and tell me what is wrong with the xstart, ystart, xend and yend variables.
# randaom data
df = pd.read_csv(r"D:\Users\Manav\Downloads\Brozovic\Inter Parma.csv")
size = 6
xstart= df.x
ystart = df.y
xend = df.endX
yend = df.endY
xstart = [120] * size
ystart = [80] * size
xend = np.random.uniform(0, 120, size=size)
yend = np.random.uniform(0, 80, size=size)
df = df[(df['playerId']==87449) & (df['outcomeType/displayName'] =='Successful') & (df['type/displayName']=='Pass')]
Im trying to create pass sonars.. Im getting the output, but im not getting the result which i desire.. need your help in this.