pd.Series.head¶ pandas.Series.head(n=5) 支持的参数¶ 参数 数据类型 n 整数 示例用法¶ >>> @bodo.jit ... def f(S): ... return S.head(10) >>> S = pd.Series(np.arange(100)) >>> f(S) 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 dtype: int64