Partager via


h3_ispentagon

Retourne True si l’ID de cellule H3 d’entrée représente un pentagone. Prend en charge Spark Connect.

Pour la fonction SQL Databricks correspondante, consultez h3_ispentagon.

Syntaxe

from pyspark.databricks.sql import functions as dbf

dbf.h3_ispentagon(col=<col>)

Paramètres

Paramètre Type Descriptif
col pyspark.sql.Column ou str ID de cellule H3, représenté en tant que int ou str

Examples

from pyspark.databricks.sql import functions as dbf
df = spark.createDataFrame([(590112357393367039,)], ['h3l'])
df.select(dbf.h3_ispentagon('h3l').alias('result')).collect()
[Row(result=True)]