pandas之DataFrame取行列(df.loc(),df.iloc())以及索引
import pandas as pdimport numpy as npdf = pd.DataFrame(np.arange(24).reshape(6,4),index=list("ABCDEF"),columns=list("WXYZ"))# df 输出的结果为: W X Y ZA 0 1 2 3B 4 5 6 7C 8...