Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DF=['Points':[1,2,....n]]
- def resetsum():
- L=[]
- Points=0
- for i in range(len(DF)):
- Points += DF['Points'].iloc[i]
- if Points >= Goal:
- L.append(Df.iloc[i].index)
- Points = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement