Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas define how you want to aggregate each column

#Aggregate columns based on a specific aggregation metric
#Here we find the mean of column 1 and the median of column 2
df.agg({'columnn_1':'mean', 'column_2': 'median'})
 
PREVIOUS NEXT
Tagged: #pandas #define #aggregate #column
ADD COMMENT
Topic
Name
6+5 =