Guest User

Untitled

a guest
Mar 23rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. 'Product' 'AmountPaid'
  2. none 0
  3. q1 1
  4. q123 123
  5. q12_a123 12
  6.  
  7. for i in range(0,1000000):
  8. if 'q' not in df.loc[i,'Product']:
  9. df.loc[i,'AmountPaid']=0
  10. else:
  11. # set 'AmountPaid' to the number following 'q'
Add Comment
Please, Sign In to add comment