标签: python pandas data-science
我有一个包含性别和午餐的数据框,如下所示:
Gender | Lunch | lunch_mapped female | standard | 1 female | standard | 1 female | free | 2 female | free | 2 female | standard | 1
我想要输出为:
standard 3 free 2
我对此一无所知,甚至很难找到它。