dataframe 索引

->重置索引

df.set_index() 

->把列转换为索引

data.set_index("B")  把data的B列的值变成行索引

posted @ 2020-10-21 20:14  周周和奇奇  阅读(110)  评论(0编辑  收藏  举报