Uh oh!
There was an error while loading. Please reload this page.
feat: add GeoSeries.from_xy() - #1364
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
tswast
commented
Feb 5, 2025
Doctest failures: These don't appear to be related to this change. |
tswast
commented
Feb 5, 2025
Notebook test failures: The error |
There was a problem hiding this comment.
Per the notebook failure, please add some logic to ibis_dtype_to_bigframes_dtype looking for all ibis geography-y types and returning the gpd.array.GeometryDtype().
Something like
ifisinstance(ibis_dtype, ibis_dtypes.GeoSpatial):
returngpd.array.GeometryDtype()There was a problem hiding this comment.
The reason we can look for ibis_dtypes.GeoSpatial is that all the geography-y types have it as a superclass. See: https://github.com/googleapis/python-bigquery-dataframes/blob/b9bdca8285ee54fecf3795fbf3cbea6f878ee8ca/third_party/bigframes_vendored/ibis/expr/datatypes/core.py#L974
tswast
left a comment
There was a problem hiding this comment.
Marking as request changes to cover the ibis_dtype_to_bigframes_dtype change for the notebook fix before merging.
* chore: support timestamp subtractions * Fix format * use tree rewrites to dispatch timestamp_diff operator * add TODO for more node updates * polish the code and fix typos * fix comment * add rewrites to compile_raw and compile_peek_sql
* chore: add a tool to upload tpcds data to bigquery. * update error type * update docstring
* feat: add GeoSeries.from_xy * add from_xy test and update ibis types * update geoseries notebook with from_xy * Update docstring example * fix doctstring lint error * return GeometryDtype() for all ibis geo types * chore: support timestamp subtractions (#1346) * chore: support timestamp subtractions * Fix format * use tree rewrites to dispatch timestamp_diff operator * add TODO for more node updates * polish the code and fix typos * fix comment * add rewrites to compile_raw and compile_peek_sql * chore: add a tool to upload tpcds data to bigquery. (#1367) * chore: add a tool to upload tpcds data to bigquery. * update error type * update docstring --------- Co-authored-by: Shenyang Cai <sycai@users.noreply.github.com> Co-authored-by: Huan Chen <142538604+Genesis929@users.noreply.github.com>
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:
from_xy: screen/3pW4NWMsvfvVeYd, screen/3SimxdQU93zjinv, screen/rfsK45NBkxkUdz7Fixes #393394365 🦕