I'm running a for loop that calls a function which returns a Pandas series. On each iteration of the for loop I'm appending that row to a final Dataframe output.
Inside the function I calculate some stuff and query a SQL database.
How can I run this on 4 or 5 parallel threads and still append to the same final dataframe?
df_final = pd.DataFrame()
for i in range(0,10000):
series = myFunction(A,B,C)
df_final = df_final.append(series)