pandas: count things

前端 未结 5 915
庸人自扰
庸人自扰 2020-12-23 11:57

In the following, male_trips is a big pandas data frame and stations is a small pandas data frame. For each station id I\'d like to know how many male trips took place. The

5条回答
  •  悲&欢浪女
    2020-12-23 12:13

    male_trips.count()
    

    doesnt work? http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.count.html

提交回复
热议问题