📌  相关文章
📜  pandas 定义了如何聚合每一列 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:35.989000             🧑  作者: Mango

代码示例1
#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'})