Skip to content
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

Closed
wants to merge 2 commits into from
Closed

feat: add geo accessor to Series #644

wants to merge 2 commits into from

Conversation

DevStephanie
Copy link
Contributor

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:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

@product-auto-label product-auto-label bot added size: s Pull request size is small. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Apr 29, 2024


class GeoSeries(gpd.GeoSeries):
def distance(self):
Copy link
Collaborator

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.

Copy link
Contributor Author

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.

@tswast tswast mentioned this pull request May 2, 2024
4 tasks
the geoseries class is a base for bigframes.geopandas.GeoSeries
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels May 2, 2024
import geopandas as gpd


class GeoSeries(gpd.GeoSeries):
Copy link
Collaborator

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.

Copy link
Collaborator

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.

@tswast
Copy link
Collaborator

tswast commented Sep 5, 2024

Thanks @DevStephanie for your help! I'm closing this in favor of #962. This PR gave our latest apprentices a great head start.

@tswast tswast closed this Sep 5, 2024
@tswast tswast deleted the Stephanie-0 branch September 5, 2024 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants