Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Pandas crosstab function(counting) frequencies

>>> pd.crosstab(index=emp['gender'], columns=emp['race'],                 values=emp['salary'], aggfunc='mean').round(-3)
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #Pandas #crosstab #frequencies
ADD COMMENT
Topic
Name
1+6 =