vibespatial.api.tabular

Public numeric reductions that preserve device-backed pandas Series.

Functions

dense_count(→ pandas.Series)

Count non-negative integer codes into a fixed-size dense Series.

numeric_take(→ pandas.Series)

Gather numeric values by integer positions into a real pandas Series.

Module Contents

vibespatial.api.tabular.dense_count(codes, *, size: int, dtype: Any = np.uint32, name: Any = None) pandas.Series

Count non-negative integer codes into a fixed-size dense Series.

This is the fixed-domain counterpart of numpy.bincount. codes must be one-dimensional and every value must be in [0, size). Device-backed vibeSpatial expressions produce a device-backed real pandas Series.

vibespatial.api.tabular.numeric_take(values, indices, *, name: Any = None) pandas.Series

Gather numeric values by integer positions into a real pandas Series.