snowflake.snowpark.functions.h3_get_resolution¶

snowflake.snowpark.functions.h3_get_resolution(cell_id: Union[snowflake.snowpark.column.Column, str]) → Column[source]¶

Returns the resolution of an H3 cell ID.

Parameters:

cell_id (ColumnOrName) – The H3 cell ID.

Returns:

The resolution of the H3 cell ID.

Return type:

Column

Example:

>>> df = session.create_dataframe([617540519050084351, 617540519050084352], schema=["cell_id"])
>>> df.select(h3_get_resolution(df["cell_id"]).alias("resolution")).collect()
[Row(RESOLUTION=9), Row(RESOLUTION=9)]
Copy