ENH: Add index=
/columns=
kwargs to df.set_axis()
#45467
Labels
API - Consistency
Internal Consistency of API/Behavior
Enhancement
Indexing
Related to indexing on series/frames, not to indexes themselves
I think it is strange that
.set_axis()
can't acceptindex=
/columns=
kwargs, even though similar methods.rename()
,.rename_axis()
,.drop()
and etc. can.Personally, I think it would be more readable than specifying it with
0
or1
.One trivial advantage is that it allows us to change rows and columns at once.
expect:
The text was updated successfully, but these errors were encountered: