dtoolkit.geoaccessor.index.H3.to_int#

H3.to_int() Index[source]#

Converts hexadecimal string H3 cell index to 64-bit integer.

Returns:
Index(int64)
Raises:
TypeError

If the Index dtype is not string.

Examples

>>> import dtoolkit.geoaccessor
>>> import pandas as pd
>>> index = pd.Index(['88143541bdfffff', '886528b2a3fffff'])
>>> index
Index(['88143541bdfffff', '886528b2a3fffff'], dtype='object')
>>> index.h3.to_int()
Index([612845052823076863, 614269156845420543], dtype='int64')