The code below is working but is extremely slow. Any ideas on how to make it more efficient?
\'\'\'
df["A"] = df["D"] = 0 for i in rang