对我来说,它似乎df.take()与更常见的df.iloc[]. 我检查了文档但找不到区别。是否存在take()优于 的情况iloc[]?
df.take()
df.iloc[]
take()
iloc[]
indexing pandas
indexing ×1
pandas ×1