asked
[Revised Edition] The Complete Guide to Python Machine Learning
Sorting Pandas DataFrame and performing Aggregation function and Group by
Written on
·
282
0
Answer 1
안녕하십니까,
아래와 같이 문자열로 변경해 보시지요.
titanic_df.groupby('Pclass')['Age'].agg(['max', 'min', 'mean'])
감사합니다.