dataframe不用loc/iloc选取索引

print(df2['two': 'three'])
[out]:
      char  int  float
two      b   20    2.2
three    c   30    3.3

在这里插入图片描述
摘自:https://blog.csdn.net/fantine_deng/article/details/105130904

猜你喜欢

转载自blog.csdn.net/Caiqiudan/article/details/110506527