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

h3_maxchild

指定された解像度で入力H3 セルの最大値の子を返します。Spark Connect をサポートします。

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

構文

Python
from pyspark.databricks.sql import functions as dbf

dbf.h3_maxchild(col1=<col1>, col2=<col2>)

パラメーター

パラメーター

Type

説明

col1

pyspark.sql.Column または str

H3セルID。 intまたは str

col2

pyspark.sql.Columnstr 、または int

返される最大値の子セル ID の解像度。負でない値で、最初の引数の解像度以上である必要があります。

パラメーター

Type

説明

col1

pyspark.sql.Column または str

H3セルID。 intまたは str

col2

pyspark.sql.Columnstr 、または int

返される最大値の子セル ID の解像度。負でない値で、最初の引数の解像度以上である必要があります。

Python
from pyspark.databricks.sql import functions as dbf
df = spark.createDataFrame([(599686042433355775, 10,)], ['h3l', 'res'])
df.select(dbf.h3_maxchild('h3l', 'res').alias('result')).collect()
Output
[Row(result=622204040416821247)]
Python
df.select(dbf.h3_maxchild('h3l', 10).alias('result')).collect()
Output
[Row(result=622204040416821247)]
このページの見出し