I have a large panda dataframe, I want to apply this code on it where\'s: name, A, B,x, A2, B2, A3, B3 are the columns in the large dataframe. However, it takes days; I want to