I trying to build a data frame based on another one. In order to build the second one, I need to loop over the first data frame and make some changes to the data and insert it in the second one. I am using a namedTuple for my for loop.
This loop is taking a lot of time to process 2m rows of data. Is there any fastest way to do this?