File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -21,17 +21,17 @@ def H2H_Cal(HT='',AT=''):
2121 #print(str(HTT)+" / "+str(ATT))
2222
2323 #print('---------------')
24- for i in range (0 ,len (df ['homeTeam' ])):
25- if (df .homeTeam [i ]== AT ):
26- if (df .awayTeam [i ] == HT ):
27- total += 1
28- #print(str(df.homeGoalFT[i]) + " - " + str(df.awayGoalFT[i]) + " // "+str(df.date[i]) )
29- if ((int (df .homeGoalFT [i ])- int (df .awayGoalFT [i ]))> 0 ):
30- ATT += 3
31- elif ((df .homeGoalFT [i ]- df .awayGoalFT [i ])< 0 ):
32- HTT += 3
33- else :
34- HTT += 1
35- ATT += 1
24+ # for i in range(0,len(df['homeTeam'])):
25+ # if(df.homeTeam[i]==AT):
26+ # if(df.awayTeam[i] ==HT):
27+ # total+=1
28+ # #print(str(df.homeGoalFT[i]) + " - " + str(df.awayGoalFT[i]) + " // "+str(df.date[i]) )
29+ # if((int(df.homeGoalFT[i])-int(df.awayGoalFT[i]))>0):
30+ # ATT+=3
31+ # elif((df.homeGoalFT[i]-df.awayGoalFT[i])<0):
32+ # HTT+=3
33+ # else:
34+ # HTT+=1
35+ # ATT+=1
3636 return HTT ,ATT ,total * 3
3737
You can’t perform that action at this time.
0 commit comments