I have a df and I already used .pivot to creat the df. And now my df is same as this:
I want to remove the ‘time_hour’ and create another df. I am using the reset_index and this is the results. However, I dont want a column with name time_hour. Could you please help me with that? Thanks
>Solution :
Try df.rename_axis,
df = df.rename_axis(None, axis=1)
‘time_hour’ is the column header axis name.
