h3_ispentagon
Retourne True si l'ID de cellule H3 représente un pentagone. Prend en charge Spark Connect.
Pour la fonction Databricks SQL correspondante, consultez la fonctionh3_ispentagon.
Syntaxe
Python
from pyspark.databricks.sql import functions as dbf
dbf.h3_ispentagon(col=<col>)
parameter
parameter | Type | Description |
|---|---|---|
|
| Un ID de cellule H3, représenté par |
Exemples
Python
from pyspark.databricks.sql import functions as dbf
df = spark.createDataFrame([(590112357393367039,)], ['h3l'])
df.select(dbf.h3_ispentagon('h3l').alias('result')).collect()
Output
[Row(result=True)]