Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add parameter defaults for swaplevel #12934
I will be happy to write up a pull request, but first wanted to gauge the sanity of my suggestion:
I think that
This provides the greatest symmetry with the other methods that operate on levels: they all, if no level is specified, operate on the innermost level as their default.
In the very common case where there are only two levels to the multi-index anyway, this would reduce this frequent operation to simply