Q. For the given dataframe df, write a Python statement to sort the dataframe in the ascending order of points :



House Year Points
0 Raman 2010 500
1 Tagore 2010 600
2 Raman 2011 300
3 Tagore 2011 400
4 Ashok 2010 500


Answer :-

df.sort_values('points')

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post