In my dataframe, I have to repeat the same function 300000 times, each time adding 1 to a variable var
. The easy way for me to do this is by using a for loop
for var in range(0,300000):
function(var)
Is there a faster way to iterate this function? (I don't really know if is important in this case, but my function is doing its thing over a np.array)