Hi..
Just for sorting, you can use arrange function..
In case you want to get only those students who are within the specified percentage
You can try filter function for percentage of marks...save as a df.. use select function for selecting desired columns only such as name and department..
Hope it helps
regards