メインコンテンツまでスキップ

h3_ispentagon

入力されたH3 セル ID が五角形を表す場合はTrueを返します。Spark Connect をサポートします。

対応する Databricks SQL 関数については、 h3_ispentagon関数を参照してください。

構文

Python
from pyspark.databricks.sql import functions as dbf

dbf.h3_ispentagon(col=<col>)

パラメーター

パラメーター

Type

説明

col

pyspark.sql.Column または str

H3セルID( intまたは str

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)]