python中pandas库里面为什么print(df.iloc[:,:]==0)会输出bool值
……因为 == 返回 bool 啊。
==
print(df.iloc[3, 1])#利用索引进行选取 print(df.iloc[2:5, 1:3])#切片 print(df.iloc[[1, 3, 5], 1:3])# 索引加切片