pd.Index.nbytes
pandasIndex.nbytes
不支持的索引类型
重要
目前,Bodo 将所有数字索引数据类型提升为 64 位宽。
示例用法
>>> @bodo.jit
... def f(I):
... return I.nbytes
>>> I1 = pd.Index([1,2,3,4,5,6], dtype = np.int64)
>>> f(I1)
48
>>> I2 = pd.Index([1,2,3], dtype = np.int64)
>>> f(I2)
24
>>> I3 = pd.Index([1,2,3], dtype = np.int32)
>>> f(I3)
24