So basically i want to loop n times through my dataframe and apply a function in each loop (perform a join). My test-Dataframe is like 1000 rows and in each iteration, exactly one column will be added. The first three loops perform instantly and from then its gets really really slow. The 10th loop e.g. needs more than 10 minutes.
I dont understand why this happens because my Dataframe wont grow larger in terms of rows. If i call my functions with n=20 e.g., the join performs instantly. But when i loop iteratively 20 times, it gets stucked soon.
You have any idea what can potentially cause this problem?