Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas find top 10 values in column

#df.nlargest(How many largest Values, 'Col_name')
>>> df.nlargest(3, 'a')
    a  b   c
3  11  c   3
1  10  b   2
2   8  d NaN
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #pandas #find #top #values #column
ADD COMMENT
Topic
Name
6+9 =