3. at/iat 存取器

  1. .at.iat分别使用label和整数下标获取单个值。它类似于.loc/.iloc,但是.at/.iat的速度更快

    • 每个索引只能是单个label或者单个整数

    select_at_iat

  2. 对于DataFrame.lookup(row_labels, col_labels)类似于:.loc[row_labels, col_labels],但是.lookup返回的是一维ndarray

    • 要求row_labelscol_labels长度相同。(row_labels[0],col_labels[0]决定了结果中第一个元素的位置,…(row_labels[i],col_labels[i]决定了结果中第 i+1个元素的位置, select_lookup
  3. DataFrame.get_value(index, col, takeable=False)等价于.loc[index, col],它返回单个值。而Series.get_value(label, takeable=False)等价于.loc[label],它也返回单个值 select_get_value

  4. .get(key[, default])方法与字典的get()方法的用法相同。对于DataFramekeycol_label select_get

  5. .head([n=5]).tail([n=5])返回头部/尾部n行数据 select_head_tail