Dears, I have dataframe with 4 columns: -club name, formacja- player position, overall- skills points, player_url- name of player
a=[['club_name','formacja','overall','player_url']]
I want to search for 2 or more greatest/highest values of each club_name & position.
I tried to create pivot table, but there I can get only the max value:
b=a.pivot(a, index='club_name',columns='formacja')#,aggfunc={'overall': [ max]})
Do you know other methods?