python pandas reset the data block index

data = data.reset_index(drop = False)

If you do not want to add to the original index columns, drop set to True.

 

Released four original articles · won praise 3 · Views 196

Guess you like

Origin blog.csdn.net/zxl596085278/article/details/104781535