Aller au contenu principal

h3_h3tostring

Convertit des ID de cellule H3 en une chaîne représentant l'ID de cellule sous forme de chaîne hexadécimale. Prend en charge Spark Connect.

Pour la fonction Databricks SQL correspondante, consultez la fonctionh3_h3tostring.

Syntaxe

Python
from pyspark.databricks.sql import functions as dbf

dbf.h3_h3tostring(col=<col>)

parameter

parameter

Type

Description

col

pyspark.sql.Column

Un ID de cellule H3 représenté comme une colonne .

parameter

Type

Description

col

pyspark.sql.Column

Un ID de cellule H3 représenté comme une colonne .

Exemples

Python
from pyspark.databricks.sql import functions as dbf
df = spark.createDataFrame([(599686042433355775,)], ['h3l'])
df.select(dbf.h3_h3tostring('h3l').alias('result')).collect()
Output
[Row(result='85283473fffffff')]