Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Converts an H3 cell IDs to a string representing the cell ID as a hexadecimal string. Supports Spark Connect.
For the corresponding Databricks SQL function, see h3_h3tostring function.
Syntax
from pyspark.databricks.sql import functions as dbf
dbf.h3_h3tostring(col=<col>)
Parameters
| Parameter | Type | Description |
|---|---|---|
col |
pyspark.sql.Column |
An H3 cell ID represented as a Column . |
Examples
from pyspark.databricks.sql import functions as dbf
df = spark.createDataFrame([(599686042433355775,)], ['h3l'])
df.select(dbf.h3_h3tostring('h3l').alias('result')).collect()
[Row(result='85283473fffffff')]