snowflake.snowpark.functions.h3_string_to_int¶
- snowflake.snowpark.functions.h3_string_to_int(cell_id: Union[snowflake.snowpark.column.Column, str]) Column [source]¶
Converts an H3 cell ID from hexadecimal string representation to its integer representation.
- Parameters:
cell_id (ColumnOrName) – The H3 cell ID as a hexadecimal string.
- Returns:
The H3 cell ID as an integer.
- Return type:
Example:
>>> df = session.create_dataframe([['89283087033FFFF']], schema=["cell_id"]) >>> df.select(h3_string_to_int(df["cell_id"]).alias("result")).collect() [Row(RESULT=617700171168612351)]