Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas crosstab

pd.crosstab(index=diamonds['cut'],
            columns=diamonds['color'],
            values=diamonds['price'],
            aggfunc=np.mean).round(0)
Source by gist.githubusercontent.com #
 
PREVIOUS NEXT
Tagged: #pandas #crosstab
ADD COMMENT
Topic
Name
1+3 =