From my previous question, I know apply is much slower than dataframe merge directly.
But I am still confused about why that much slower, as in my understanding, if there are N rows in dataframe, apply function should work as O(N)...
Could anyone explain the theory behind apply and dataframe merge to me? Or is there any resources to study that?
Thanks in advance :)