-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
PERF: Introducing hash tables for complex64 and complex128 #38179
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
0b70965
remove unnecessary setting of keys kh_put_xxx, already does it!
realead 06f7a07
adding explicit c_type as preparation for complex, for which c_type w…
realead 6fe568e
introducing complex hash tables
realead fbbf544
ensure const-correctness of input is tested
realead 1fe2d55
const memoryviews of struct dtypes will work only with Cython>=0.29.2…
realead 57e2a72
making count_values and mode accept constand input as well
realead 259deff
activating tests for complex hashtables
realead 22ee6e7
using to_c_type, rather than a switch
realead 5bcd106
getting rid of complex_group/float_group
realead 432f839
fixing style issues
realead a4903b0
removing commented out code
realead bb1f3d5
get_labels_groupby is only used with Int64HashTable, thus define it o…
realead 28c2f2d
fixing test case for 32bit build
realead 50d7136
minor style issues
realead 4efdc67
parameterize tests on writeable True/False
realead 9930a55
reshuffle code, so it becomes more obvious which functions are define…
realead File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why adding this only for int64?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function is used just in int64-version:
pandas/pandas/core/sorting.py
Lines 598 to 603 in aad85ad
The logic in this function:
pandas/pandas/_libs/hashtable_class_helper.pxi.in
Lines 628 to 633 in 1fc5efd
IIUC, negative numbers are special and should be skipped, but this is only a convention for the meaning of values
group_index
. For other types there is no such convention. Instead of inventing something, I've decided to delete unused functions/versions.