pandas-tutorial
pandas-tutorial copied to clipboard
对于【1.1.3 iloc】中的使用方法翻译存疑
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
?)
位置索引是隐含的,无视索引指的就是无视当前显示的series索引,不管其是字符串还是数值。