[FEA] DataFrame swapaxes #9628
Labels
feature request
New feature or request
good first issue
Good for newcomers
Python
Affects Python cuDF API.
Milestone
For pandas API compatibility, we can implement DataFrame.swapaxes. This appears to either return a transpose (swapping index and column axes) or the original frame. In both cases, the data is copied by default (but can be parameterized to return a view / the original frame instead).
Series.swapaxes is likely going to be deprecated in the future based on pandas-dev/pandas#18262 and the method itself is generally no longer useful since pandas removed Panels. There may be some numpy compatibility reasons it still exists, based on pandas-dev/pandas#26654 . If we eventually run into similar needs with CuPy, we can cross that bridge when we come to it.
The text was updated successfully, but these errors were encountered: