df[[‘Salary’,’Age’.sort(ascending=False)]] I want the 2 column…

Question Answered step-by-step df[[‘Salary’,’Age’.sort(ascending=False)]] I want the 2 column… df[[‘Salary’,’Age’.sort(ascending=False)]]     I want the 2 column Salary and Age  to be arrange in descending order  but am getting error..how best to write it  AttributeError                            Traceback (most recent call last)Input In [234], in ()—-> 1 df[[‘Open’,’Low’.sort(ascending=False)]]AttributeError: ‘str’ object has no attribute ‘sort’   Computer Science Engineering & Technology Python Programming COMPUTERS PYTHON Share QuestionEmailCopy link Comments (0)