Pandas Group von Count
raw_dataset.groupby('machineFailure',as_index=False).agg({"PID": "count"})
InnovateDotAI DS
raw_dataset.groupby('machineFailure',as_index=False).agg({"PID": "count"})
df[['col1', 'col2', 'col3', 'col4']].groupby(['col1', 'col2']).agg(['mean', 'count'])