pandas-tutorial icon indicating copy to clipboard operation
pandas-tutorial copied to clipboard

对于【1.1.3 iloc】中的使用方法翻译存疑

Open iamyifan opened this issue 2 years ago • 1 comments

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?)

iamyifan avatar Dec 03 '21 10:12 iamyifan

位置索引是隐含的,无视索引指的就是无视当前显示的series索引,不管其是字符串还是数值。

hangsz avatar Apr 12 '22 14:04 hangsz