Techwizard987 / Pass-Grid

0 stars 0 forks source link

Pass Sonars #3

Open Techwizard987 opened 2 years ago

Techwizard987 commented 2 years ago

Im trying to create pass sonars.. Im getting the output, but im not getting the result which i desire.. need your help in this.

raosushant7 commented 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')]