コード例 #1
0
ファイル: pdlike_usecase.py プロジェクト: sisi2/Masterthesis
def typeof_series(val, c):
    index = typeof_impl(val._index, c)
    arrty = typeof_impl(val._values, c)
    assert arrty.ndim == 1
    assert arrty.layout == 'C'
    return SeriesType(arrty.dtype, index)
コード例 #2
0
ファイル: pdlike_usecase.py プロジェクト: sisi2/Masterthesis
def typeof_index(val, c):
    arrty = typeof_impl(val._data, c)
    assert arrty.ndim == 1
    return IndexType(arrty.dtype, arrty.layout, type(val))
コード例 #3
0
def typeof_index(val, c):
    val_typ = typeof_impl(val.value, c)
    return IndexValueType(val_typ)
コード例 #4
0
ファイル: builtins.py プロジェクト: esc/numba
def typeof_index(val, c):
    val_typ = typeof_impl(val.value, c)
    return IndexValueType(val_typ)
コード例 #5
0
ファイル: pdlike_usecase.py プロジェクト: Alexhuszagh/numba
def typeof_series(val, c):
    index = typeof_impl(val._index, c)
    arrty = typeof_impl(val._values, c)
    assert arrty.ndim == 1
    assert arrty.layout == 'C'
    return SeriesType(arrty.dtype, index)
コード例 #6
0
ファイル: pdlike_usecase.py プロジェクト: Alexhuszagh/numba
def typeof_index(val, c):
    arrty = typeof_impl(val._data, c)
    assert arrty.ndim == 1
    return IndexType(arrty.dtype, arrty.layout, type(val))