h3_minchild

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

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

構文

from pyspark.databricks.sql import functions as dbf

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

パラメーター

パラメーター タイプ Description
col1 pyspark.sql.Column または str int または str として表される H3 セル ID
col2 pyspark.sql.Column、 str、または int 返される最小値の子セル ID の決定。 非負で、最初の引数の解像度以上である必要があります。

例示

from pyspark.databricks.sql import functions as dbf
df = spark.createDataFrame([(599686042433355775, 10,)], ['h3l', 'res'])
df.select(dbf.h3_minchild('h3l', 'res').alias('result')).collect()
[Row(result=622204039496499199)]
df.select(dbf.h3_minchild('h3l', 10).alias('result')).collect()
[Row(result=622204039496499199)]