pd.Series.loc:
"Access a group of rows and columns by label(s) or a boolean array."
pd.Series.iloc:
"Purely integer-location based indexing for selection by position."
“无视索引,只按照位置定位。” → “以(整数形式的)索引实现位置定位。”
iloc中的i可以指integer,也可以指index。总之,在使用方法上通过interger-based index实现定位。
而原文中的“无视索引”容易引起歧义。(或许是想对比label-based index?)
pd.Series.loc:pd.Series.iloc:“无视索引,只按照位置定位。” → “以(整数形式的)索引实现位置定位。”
iloc中的i可以指integer,也可以指index。总之,在使用方法上通过interger-based index实现定位。而原文中的“无视索引”容易引起歧义。(或许是想对比
label-based index?)