I have a code which looks like
for index, row in data.iterrows():
data.loc[index, "myCol"] = someFunc(data.loc[index-1, "myCol")
The code is using recursion so I cannot vectorize it.
What is the best way for me to optimize it in terms of performance?
0