Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas most and least occurrence value

### most occurrence value ###
df['column'].value_counts().idxmax()
### least occurrence value ###
df['column'].value_counts().idxmin()
 
PREVIOUS NEXT
Tagged: #pandas #occurrence
ADD COMMENT
Topic
Name
1+9 =