I have a df which looks like this:
Column 1
Channel
Apples 1.0
Oranges 2.0
Puppies 3.0
Ducks 4.0
I would like to rename the axis so it looks like this:
Channel Column 1
Apples 1.0
Oranges 2.0
Puppies 3.0
Ducks 4.0
I tried these but got the same error msg:
merged_df.rename_axis("Channel")
merged_df.rename_axis("Channel", axis='columns')
TypeError: 'str' object is not callable
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…