-
Notifications
You must be signed in to change notification settings - Fork 42
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
feat: add geo accessor to Series #644
Conversation
|
||
|
||
class GeoSeries(gpd.GeoSeries): | ||
def distance(self): |
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.
As we discussed in chat, let's do x
and y
properties to start to avoid complexities with binary operators / alignment.
Also, let's do a warnings.warn
with a new bigframes.exceptions.PreviewWarning
and add preview info to the docstrings to indicate that these features may change until we release them fully.
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.
Resolved on new PR today.
the geoseries class is a base for bigframes.geopandas.GeoSeries
import geopandas as gpd | ||
|
||
|
||
class GeoSeries(gpd.GeoSeries): |
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.
Instead of subclassing geopandas.GeoSeries, subclass your new third_party version of it.
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 should be in third_party
.
Thanks @DevStephanie for your help! I'm closing this in favor of #962. This PR gave our latest apprentices a great head start. |
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #<issue_number_goes_here> 🦕