从 DataFrame 计算全年的统计信息

Computing stats info for the entire year from a DataFrame

我有一个大约占一年的数据框(类似于下面的数据框)。

..

..

..

第一列是信息相关日期,第二列是识别特定项目的代码。我可以知道如何 perform/get 全年的平均值、中位数、众数等相关统计信息吗?

A MWE of the data can be found here.

在@it_is_Chris的帮助下,问题得到解决:

df.groupby(df['EN'])[df.columns[2:]].agg(['mean', 'median'])