dataframe 索引

->重置索引

df.set_index() 

->把列转换为索引

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

原文地址:https://www.cnblogs.com/howmanyk/p/13854426.html