You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a dataframe where I'm computing some summary items for groups and it's convenient to reconsolidate merge those back into the parent dataframe. Transform seems the most intuitive way to do this but I'm seeing much worse performance than doing a manual aggregation and merge.
I have a dataframe where I'm computing some summary items for groups and it's convenient to reconsolidate merge those back into the parent dataframe. Transform seems the most intuitive way to do this but I'm seeing much worse performance than doing a manual aggregation and merge.
Starting from issue #2121 marked as closed:
which gives us a (1000000, 2) dataframe of floats
1 loops, best of 3: 8.16 s per loop
my alternative is to write something like this:
which seems to run much faster despite all the indexing going on:
10 loops, best of 3: 81.1 ms per loop
The text was updated successfully, but these errors were encountered: