Hello guys this is my first question on this forum. I'm new using Python but I have problem on this code:
df[
(df["Type 1"] == "Psychic") &
(df["Attack"] > 100)
].groupby(["Name", "Type 1"])["Legendary"]
print(df['Type 1'].sort_values(by = 'Attack' , ascending = False).head(10)
I want to show the sorting of Attack that belong to "Name" and "Type 1"