loc
loc按照标签或者索引、布尔值或者条件进行选择数据,这种选择数据的方法较为常用。
df.loc [row selection, column selection]
iloc
iloc索引器用于按位置进行基于整数位置的索引或者选择。
df.iloc [row selection, column selection]
loc
loc按照标签或者索引、布尔值或者条件进行选择数据,这种选择数据的方法较为常用。
df.loc [row selection, column selection]
iloc
iloc索引器用于按位置进行基于整数位置的索引或者选择。
df.iloc [row selection, column selection]