[GH-2454] : Implement binary predicate `relate` for Geopandas #2455
self.check_pd_series_equal(result, expected)
While this works, it's actually preferred to use self.check_pd_series_equal() instead. You can read about why in this issue: https://github.com/apache/sedona/issues/2379.
self.check_pd_series_equal(result, expected)
self.check_pd_series_equal(result, expected)
self.check_pd_series_equal(result, expected)
self.check_pd_series_equal(result, expected)
self.check_pd_series_equal(result, expected)
This conditional skip is included in some test functions to work around a bug or difference in Sedona's behavior, but for this case, we can actually remove this, since the tests pass without it (I checked this branch out and tried it locally).
Just an fyi, we don't actually keep this list updated (in fact, I just filed an issue to remove this). It doesn't hurt to update it, so it's fine to leave this change here.
Welcome! Thanks for working on this. It looks great. I mainly just had two minor suggestions to improve testing, but otherwise it looks good.
<img width="458" height="32" alt="image" src="https://github.com/user-attachments/assets/d7e6b93e-b866-415b-87fb-da99bfdccc82" />
optional: I recommend setting up the pre-commit hook to auto-run the linter after each commit. It's as simple as running make checkinstall in the home directory (or running pip install pre-commit and pre-commit install). Otherwise, you'll have to remember to run pre-commit manually before submitting a PR (which I personally find easy to forget).
sure will fix it in seperate PR
Resolved in the commit https://github.com/apache/sedona/pull/2455/commits/6f14d51392d141fe0dc18077508b3e5da022131e
Resolved in the commit Resolved in the commit https://github.com/apache/sedona/commit/6f14d51392d141fe0dc18077508b3e5da022131e
Thanks for the review, @petern48!
I’ve addressed your comments in 6f14d51
, rerun the tests, and set up the pre-commit hook as suggested.
Please review at your convenience.
Great PR, thanks for working on it!
petern48
gauravbyte
Resolves: #2454
Depends on: #2230
Did you read the Contributor Guide?
Is this PR related to a ticket?
[GH-XXX] my subject. Closes #2454What changes were proposed in this PR?
Implement binary predicate
relatefor Geopandas with test casesHow was this patch tested?
Added tests
Did this PR include necessary documentation updates?