SyntaxFix
Write A Post
Hire A Developer
Questions
sorted return a new sorted list from the items in iterable. CODE
sorted
import pandas as pd df = pd.DataFrame({'A':[1,1,3,2,6,2,8]}) a = df['A'].unique() print sorted(a)
OUTPUT
[1, 2, 3, 6, 8]