-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BENCH: Index.take benchmark is measuring wrong thing #18000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@jorisvandenbossche I would like to make this issue to be my first contribution. I have looked at the source code and ready to take it up. |
Yes, although I think you can just replace the existing
If you try to run the code (or similar), you will see:
so take interprets the True, False as 0, 1 and not as a mask (like is done in |
@jorisvandenbossche I made the following changes in Replaced the boolean list Also where should I add Tests? Should I add/modify any tests? |
It seems like the issue has been open for quite a while. I looked into the |
take |
The
take
benchmarksindexing.IndexingMethods.time_take_intindex
is benchmarkingtake
on a boolean list, which take interprets as a [0, 1, 0, 1, ...] values, which is a bit silly to benchmark.We should add some actual benchmark on integers instead.
The text was updated successfully, but these errors were encountered: