pd.DataFrame.take¶ pandas.DataFrame.take(indices, axis=0, is_copy=None) 支持的参数¶ indices: 标量整数,Pandas整数数组,Numpy整数数组,整数系列 示例用法¶ >>> @bodo.jit ... def f(): ... df = pd.DataFrame({"A": [1,2,3], "B": [4,5,6], "C": [7,8,9]}) ... return df.take(pd.Series([-1,-2])) >>> f() A B C 2 3 6 9 1 2 5 8