i have this code
pd.unique(df_dataset["City"])
then this output comes out
array(['Marseile', 'Barcelona', 'Valencia', 'Paris', 'Berlin', 'Lyon',
'Seville', 'Palma', 'Munich', 'Hamburg', 'Madrid', 'Nice',
'Granada'], dtype=object)
how do i add sort() function in the code
I have tried to run this
pd.unique(df_dataset["City"]).sorted("City", key=True)
but it doesn't seems correct