SORTING DATAFRAME (BY COLUMN) IN PANDAS - PYTHON PROGRAMMING || SORT A DATAFRAME IN PANDAS

preview_player
Показать описание
sort_values("column_name",ascending=False)
Рекомендации по теме
Комментарии
Автор

Hi,
As you say in this video @7:26 time, that sorting is done on the basis of science and math and science is sorted in ascending and math is sorted in descending order but the result shows both in ascending order.

However, thanks for this video series on Pandas.

mukulkumar
Автор

I am not understanding at 5:30 let's suppose that if abhiram be sorted first w.r.t Name but suppose he fot 10 number in maths then how it is going to sort it w.r.t both the variables.

muhammadzakiahmad
Автор

Sir
First course ala start cheyyalo cheppagalara? about python

dileepyenugutala
Автор

haven't you taught the ascending and descending concept wrong because when you are ascending the "Name_of_Student" the "Maths" column will be in accordance with the "Name_of_Student", "Maths" column is not in ascendung and descending order

deepanshubambal
Автор

Modules full concept explain cheyiandi sir

bandimuralidharreddy
Автор

df.sort_values(["Name_of_Student", "Maths"], ascending=[1, 0])
Name of students is in decreasing order but in case of maths it is not in ascending order .
pls give solution of it

saivardhanreddy
Автор

Ascending concept is impossible in 2 cases comparison

victornderitu
Автор

Hi,

Is it possible to convert below the input

Customer_Name, Product_1, Price_1, Product_2, Price_2
Zayn, Milk, 30, Chocolate, 40
Peter, Cheese, 190, Oil, 80
Andrew, Coconut, 10, Milk, 60
Dwayne, Soya, 100, Butter, 120

to this output where the Product name should be ascending and it should also have its price in the next column

Customer_Name, Product_1, Price_1, Product_2, Price_2
Zayn, Chocolate, 40, Milk, 30
Peter, Cheese, 190, Oil, 80
Andrew, Coconut, 10, Milk, 60
Dwayne, Butter, 120, Soya, 100

hayathbasha