Join GitHub today
ENH: Support rename on MultiIndex #4628
So if you want to do something generically, you should use
I personally think that this behavior is how it should work for Index. Everyone okay with this? I'd prefer not to do type sniffing if at all possible.
ind = Index(range(10)) ind.rename(["apple"], inplace=True) print(ind.name) # ['apple'] print(ind.names) # [['apple']] ind.set_names('apple') # Fails with error that it's too long
@jreback there's no