I need to modify the code in the file [login to view URL] to make it more efficient. It takes observations from the file Sample [login to view URL] and converts them into what its in output.csv. Currently the code handles in decent time up to 1,000 obs, but after that gets extremely inefficient (memory wise) and can take up to 4 days to process 4,000 obs. The goal here is to process 20,000 or more in a matter of hours or minutes. Ping me if there are any questions.