Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.49 KB | None | 0 0
  1.  #tranzakciókat számol
  2.     #egyedi msno
  3. unique_msnos = list(set(trans.msno))
  4. msnos = list(trans['msno'])
  5. msnos.sort()
  6. unique_msnos.sort()
  7.     #nulla oszlop
  8. msno_counts = list(tempdf1.how_many_transaction)
  9. index = 0
  10. index_trans = 0
  11. prev = msnos[0]
  12.     #961431 db egyedi msno van
  13.     #15900660 db tranzakció van
  14. while(index < 961431 and index_trans < 15900660):
  15.     x = msnos[index_trans]
  16.     if x != prev:
  17.         prev = x
  18.         index += 1
  19.     msno_counts[index] += 1
  20.     index_trans += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement