No Axis Named 1 For Object Type
I created a DataFrame and I am trying to sort it based on the columns. I used the below code. frame.sort_index(axis=1) But this is causing the below errors -----------------------
Solution 1:
For DataFrames, the value to be passed for axis is columns
.
frame.sort_index(axis='columns')
Post a Comment for "No Axis Named 1 For Object Type"