Hi, I have a program that works. But i have to go through the file 3 times and for large files this may not be good. Also, i was wondering ifthere is a "better" way to approach this than what i did. So what i did (i include the code) is as follows:
Loop1: build dictionary where the key is the firstlast-name and contents of the dictionary sum the payments value for given firstlastname.
Loop2: adds elements to this dictionary where the sum of the payments value is negative
Loop3: remove those rows where the firstlastname is negagive.
not sure if there is a better way or not .....this seems to work though.
Bookmarks