I am completely new to pandas, and python in general. I have a dataset, containing 18 columns. In the 10th column, I have "temp_c" representing temperatures in celsius, and in the 17th column, I have "temp_f" representing temperatures in fahrenheit. How do I select the temp_f and reposition it so that it will now appear in front of temp_c?
I'm attempting this in Jupyter notebook, but to no avail. I simply don't have enough experience to better articulate this question/problem.
df.sort_values('temp_f' , 'temp_c')
You can get locations of
temp_candtemp_fusingget_locand swap the columns