(index_typ, val, c)
return index
Boxes native value used to represent Pandas index into appropriate Python object.
        Params:
            index_typ: Numba type of native value
            val: native value
            c: LLVM context object
        Returns: Python object native value is boxed into
Boxes native value used to represent Pandas index into appropriate Python object.
        Params:
            index_typ: Numba type of native value
            val: native value
            c: LLVM context object
        Returns: Python object native value is boxed into
Boxes native value used to represent Pandas index into appropriate Python object . Params : index_typ : Numba type of native value val : native value c : LLVM context object Returns : Python object native value is boxed into
def _box_index_data(index_typ, val, c):
    """ Boxes native value used to represent Pandas index into appropriate Python object.
        Params:
            index_typ: Numba type of native value
            val: native value
            c: LLVM context object
        Returns: Python object native value is boxed into
    """
    assert isinstance(index_typ, sdc_pandas_index_types)

    if isinstance(index_typ, EmptyIndexType):
        index = box_empty_index(index_typ, val, c)
    elif isinstance(index_typ, PositionalIndexType):
        index = box_positional_index(index_typ, val, c)
    elif isinstance(index_typ, RangeIndexType):
        index = box_range_index(index_typ, val, c)
    elif isinstance(index_typ, Int64IndexType):
        index = box_int64_index(index_typ, val, c)
    elif isinstance(index_typ, types.Array):
        index = box_array(index_typ, val, c)
    elif isinstance(index_typ, StringArrayType):
        index = box_str_arr(string_array_type, val, c)
    else:
        assert False, f"_box_index_data called with unknown index type: {index_typ}"

    return index
def _box_index_data ( index_typ , val , c ) : assert isinstance ( index_typ , sdc_pandas_index_types ) if isinstance ( index_typ , EmptyIndexType ) : index = box_empty_index ( index_typ , val , c ) elif isinstance ( index_typ , PositionalIndexType ) : index = box_positional_index ( index_typ , val , c ) elif isinstance ( index_typ , RangeIndexType ) : index = box_range_index ( index_typ , val , c ) elif isinstance ( index_typ , Int64IndexType ) : index = box_int64_index ( index_typ , val , c ) elif isinstance ( index_typ , types . Array ) : index = box_array ( index_typ , val , c ) elif isinstance ( index_typ , StringArrayType ) : index = box_str_arr ( string_array_type , val , c ) else : assert False , f"_box_index_data called with unknown index type: {index_typ}" return index