Pandas 精简实例入门
import pandas as pd import numpy as np 0. 案例引入 # 由np直接生成的ndarray stock_change = np.random.normal(0, 1, (10, 8)) stock_change array([[ 0.74057955, 0.78604657, -0.15264135, 0.05680483, 0.09388135, 0.7313751 , -1.52338443, 1.71156505], [ 0.42204925, 0.62541715, -1.41583042, -0.27434654, 0.98587136, -0.55797884, 0.31026482, -0.47964535], [ 0.99741102, -0.94397298, -0.40782973, -1.33631227, -0.0124836 , 1.1873408 , -0.25430393, -0.74264106], [ 0.34156662, -0.40621262, 0.82861416, 0.1272128 , 1.04101412, 0.79061324, -0.60325544, 1.29954581], [-1.23289547, 0.83789748, 1.19276989, 0.45092868, -1