Σημείωση
Η πρόσβαση σε αυτή τη σελίδα απαιτεί εξουσιοδότηση. Μπορείτε να δοκιμάσετε να συνδεθείτε ή να αλλάξετε καταλόγους.
Η πρόσβαση σε αυτή τη σελίδα απαιτεί εξουσιοδότηση. Μπορείτε να δοκιμάσετε να αλλάξετε καταλόγους.
Returns the resolution of the H3 cell ID. Supports Spark Connect.
For the corresponding Databricks SQL function, see h3_resolution function.
Syntax
from pyspark.databricks.sql import functions as dbf
dbf.h3_resolution(col=<col>)
Parameters
| Parameter | Type | Description |
|---|---|---|
col |
pyspark.sql.Column or str |
An H3 cell ID, represented as a integer or a string |
Examples
from pyspark.databricks.sql import functions as dbf
df = spark.createDataFrame([(599686042433355775,)], ['h3l'])
df.select(dbf.h3_resolution('h3l').alias('result')).collect()
[Row(result=5)]