I have a dataframe like this
name
a
s
d
a
s
d
f
a
s
a
s
I need to finally get the top 3 values based on value count.I did got value counts. I used,data2['name'].value_counts(sort=True,ascending=False).
But instead of value count, I need those top 3 name values. ie,
[a,s,d]