How to sort values in DataFrame | Class 12 Informatics practice
import pandas as pd
student={"Name": ['Ram','shyaam','Hari',"Aditya","pankaj"],"Eco":[50,48,49,50,49],"IP":[50,50,50,50,50]}
df3=pd.DataFrame(student)
print("how to add new columns in dataframe")
print("How ro insert New columns at perticular location")
#df3.insert(3,'Maths',[23,45,49,49,49])
df4=df3.sort_values(by=['Name'])
print(df4)
0 Comments