- 找出指定的行和指定的列
data.iloc[:,:2] #即所有行,前两列的数据
- 在规定范围内找出符合条件的数据
data.iloc[:10,:][data.工资>6000]
- 已知数据在第几列找到想要的数据
data.iloc[i, [j]]#第(i+1)行第(j+1)列
参考python下pandas库中读取指定行或列数据(excel或csv)
更多推荐
python下pandas库中读取指定行或列数据(excel或csv)
data.iloc[:,:2] #即所有行,前两列的数据
data.iloc[:10,:][data.工资>6000]
data.iloc[i, [j]]#第(i+1)行第(j+1)列
参考python下pandas库中读取指定行或列数据(excel或csv)
更多推荐
python下pandas库中读取指定行或列数据(excel或csv)
发布评论