DataFrame Accessor#

Conversion#

from_xy(df, /, x, y[, z, crs])

Generate GeoDataFrame of Point geometries from columns of DataFrame.

from_wkt(df, /, geometry[, crs])

Generate GeoDataFrame of geometries from 'WKT' column of DataFrame.

from_wkb(df, /, geometry[, crs])

Generate GeoDataFrame of geometries from 'WKB' column of DataFrame.

to_geoframe(df, /[, geometry, crs])

Transform a DataFrame to a GeoDataFrame.

Address handling#

geocode(df, /[, address, provider, ...])

Geocode Series(string) and get a GeoDataFrame of the resulting points.

H3 accessor#

DataFrame.h3 can be used to access the index of string or int64 and apply several methods to it. These can be accessed like DataFrame.h3.<function/property>.

is_h3(df, /)

Validate whether the Series is H3 cell index.

H3(df, /)

Hexagonal hierarchical geospatial indexing system.

H3.area

Compute the spherical surface area of a specific H3 cell.

H3.resolution

Return the resolution of H3 cell.

H3.is_valid

Validates H3 cell (hexagon or pentagon).

H3.is_pentagon

Identify if H3 cell is a pentagon.

H3.to_int()

Converts hexadecimal string H3 cell index to 64-bit integer.

H3.to_str()

Converts 64-bit integer H3 cell index to hexadecimal string.

H3.to_center_child([resolution])

Get the center child of cell.

H3.to_children([resolution])

Get the children of cell.

H3.to_parent([resolution])

Get the parent of cell.

H3.to_points()

Return the center Point of H3 cell.

H3.to_polygons()

Return Polygon to describe the cell boundary.