How do you write an index of a dataframe to itself?
For Example:
      50       51
   0  326.32   193.1
   1  324.2    192.1
   2  234.2    0
   3  302.1    23
I would like to write a column named index with the index values to the df:
      index     50       51
   0  0         326.32   193.1
   1  1         324.2    192.1
   2  2         234.2    0
   3  3         302.1    23
 
     
     
    