-
Notifications
You must be signed in to change notification settings - Fork 79
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
ENH: Graph.eliminate_zeros, refactor isolates #634
Conversation
# since not all zeros are necessarily isolates, do the focal == neighbor check | ||
return nulls[nulls.index == nulls.neighbor].index.unique() | ||
return ( | ||
nulls[nulls.index.codes[0] == nulls.index.codes[1]] |
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 is indeed faster than the original solution. On exploded geoda tampa1
dataset and basic contiguity 84.8 µs ± 5.65 µs
vs 253 µs ± 6.75 µs
.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #634 +/- ##
=====================================
Coverage 84.7% 84.8%
=====================================
Files 139 139
Lines 14869 14880 +11
=====================================
+ Hits 12601 12612 +11
Misses 2268 2268
|
Closes #633