Open tiny-fisher opened 5 years ago
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html
df2 = pd.DataFrame(np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]), columns=['a', 'b', 'c'])
as for 聚合操作, axis = 0 意味着,对行操作,操作之后,行这一个维度就没有了,,,从样本数量降到了1维。
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html
df2 = pd.DataFrame(np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]), columns=['a', 'b', 'c'])