dtoolkit.geoaccessor.index.H3.to_children#

H3.to_children(resolution: int = None) Index[source]#

Get the children of cell.

Parameters:
resolutionint, optional

The resolution for the children. If None, then use the current resolution of cell +1 .

Returns:
Index

New H3 children cells.

Examples

>>> import dtoolkit.geoaccessor
>>> import pandas as pd
>>> index = pd.Index([612845052823076863, 614269156845420543])
>>> index
Index([612845052823076863, 614269156845420543], dtype='int64')
>>> index.h3.to_children()  
Index(
    [
        [
            617348652448612351,
            617348652448874495,
            617348652449136639,
            617348652449398783,
            617348652449660927,
            617348652449923071,
            617348652450185215
        ],
        [
            618772756470956031,
            618772756471218175,
            618772756471480319,
            618772756471742463,
            618772756472004607,
            618772756472266751,
            618772756472528895
        ]
    ]
    dtype='object'
)