riptable.rt_algos

Functions

merge_index(indices, listcats[, idx_cutoffs, ...])

For hstacking Categoricals or fixing indices in a categorical from a stacked .sds load.

riptable.rt_algos.merge_index(indices, listcats, idx_cutoffs=None, unique_cutoffs=None, from_mapping=False, stack=True)

For hstacking Categoricals or fixing indices in a categorical from a stacked .sds load.

Supports categoricals from single array or dictionary mapping.

Parameters:
  • indices (single stacked array or list of indices) – if single array, needs idx_cutoffs for slicing

  • listcats (list) – list of stacked unique category arrays (needs unique_cutoffs) or list of lists of uniques

  • idx_cutoffs – (TODO)

  • unique_cutoffs – (TODO)

  • from_mapping (bool) – (TODO)

  • stack (bool) – (TODO)

Returns:

  • Tuple containing two items

  • - list of fixed indices, or array of fixed contiguous indices.

  • - stacked unique values