df[[‘a(chǎn)','b']] 2.df.loc[[index],[colunm]] 通過標(biāo)簽選擇數(shù)據(jù) 不對(duì)行進(jìn)行篩選時(shí),[index]處填 : (不能為空),即df.loc[:,'a']表示選取a列全部數(shù)據(jù)。 1 2 3 df.loc[0,'a'] df.loc[0:1,[‘a(chǎn)','b']] df.loc[[0,2],[‘a(chǎn)','c']] 3.df.iloc[[index],[colunm]] 通過位置選擇...
www.dbjr.com.cn/article/1381...htm 2025-6-6