# How to Sort data by Column in a CSV File in Python  # importing pandas packageimport pandas as pandasForSortingCSV  # assign datasetcsvData = pandasForSortingCSV.read_csv("sample.csv")                                         # displaying unsorted data frameprint("\nBefore sorting:")print(csvData)  # sort data framecsvData.sort_values(["Salary"],                     axis=0,                    ascending=[False],                     inplace=True)  # displaying sorted data frameprint("\nAfter sorting:")print(csvData)