Skip to content

Conversation

@WillAyd
Copy link
Member

@WillAyd WillAyd commented May 8, 2020

by using nditer this makes some progress towards #34014

Benchmarks for frame_apply looks as follows:

       before           after         ratio
     [3ed7dff4]       [5e77e1ed]
     <master>         <reduce-simplify> 
!      9.39±0.3ms           failed      n/a  frame_methods.Apply.time_apply_ref_by_name
-      8.52±0.2ms       2.87±0.2ms     0.34  frame_methods.Apply.time_apply_lambda_mean
-      9.32±0.2ms       2.96±0.3ms     0.32  frame_methods.Apply.time_apply_np_mean

I'm not quite clear yet why the one benchmark is failing. Running it over a thousands loops in the REPL seems fine, but maybe CI will help detect something

@WillAyd WillAyd added the Clean label May 8, 2020
index = dummy.index
dummy = dummy.values
# TODO: do we still need this?
self._check_dummy(dummy=dummy)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The way this is written dummy never gets used. I'm not sure what the purpose of dummy is to begin with, so maybe we can get rid of this check and its use in the constructor altogether. maybe @jbrockmendel knows

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIUC this exists so that if we are using a Series subclass, that gets retained in the reduction. If that can be ensured without needing dummy, thatd be great

@WillAyd
Copy link
Member Author

WillAyd commented Jun 5, 2020

Closing as haven't had time to look but hope to reopen at a later date, since I think this is required for Cython 3

@WillAyd WillAyd closed this Jun 5, 2020
@WillAyd WillAyd deleted the reduce-simplify branch April 12, 2023 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants