This is my dataset
0 1 2
0 1.000000 0.063373 0.753792
1 0.063373 1.000000 0.031112
2 0.753792 0.031112 1.000000
When I do similarity_df.columns
the answer is RangeIndex(start=0, stop=3, step=1)
what I want is Index(['0', '1', '2'], dtype='object')
and what I did is
df.columns = ['0', '1', '2']
The actual data is more than 2000 columns, and I need to select several column, how to make the code efficiently