Hi,
My data set is >320,000 rows deep, 45 columns. There is column headed by "Record Status Code" populated by "1" or "3". Another column "Transaction ID" has a number in string format.
My instructions were:
"9. All claims with RecordStatus = 3 are reversals. We need to remove them, along with the original claim they reversed. To find the original claim, look at the Transaction ID for the reversal, and replace the last digit (1) with a 0."
In other words, for every row with Record Status Code = "3", also find the row containing Transaction ID with altered last digit, and delete both rows.
I wrote a code that seems to work. However, it takes way too long. Is there an alternative/optimized method?
Bookmarks