I have the following data frame.
df
col_1 col_2 col_3
min1 max1 target1
min2 max2 target2
I would like to rename columns col_1, col_2, col_3 based on their value as Min, Max, and Target respectively. I would like to have something below as a result.
Min Max Target
min1 max1 target1
min2 max2 target2
Can anyone show me a simple trick to do this using Pandas python?