-
Notifications
You must be signed in to change notification settings - Fork 43
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 GeoSeries.area #1318
base: main
Are you sure you want to change the base?
feat: Add GeoSeries.area #1318
Conversation
f"GeoSeries.area is not supported. Use bigframes.bigquery.st_area(series), instead. {constants.FEEDBACK_LINK}" | ||
), | ||
): | ||
bf_series.area() |
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.
mypy error: "Series" not callable [operator]
Note: since .area
is a "property", we don't call it as a function. We pretend it's just a normal attribute.
bf_series.area() | |
bf_series.area |
A bit more about properties: https://www.pythonmorsels.com/making-read-only-attribute/ and https://realpython.com/python-property/
It's very similar to what Java calls "getter" and "setter" functions, but in this case Python allows it to look like a normal attribute.
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 #308738592 🦕