我的df看起来像这样:
Column 1
Channel
Apples 1.0
Oranges 2.0
Puppies 3.0
Ducks 4.0
我想重命名轴,看起来像这样:
Channel Column 1
Apples 1.0
Oranges 2.0
Puppies 3.0
Ducks 4.0
我尝试了这些但得到了同样的错误信息:
merged_df.rename_axis("Channel")
merged_df.rename_axis("Channel", axis='columns')
TypeError: 'str' object is not callable