我一直试图从csv文件中提取起始站和结束站最频繁的组合,但问题是我正在拉所有的组合。当我试着拉一个组合最多的时候,我只得到一个数字?在
def station_stats(df):
frequent_stations = df.groupby(['Start Station'])['End Station'].value_counts().mode
print('Most frequent start and end station: ', frequent_stations)
以下是我当前输出的内容片段:
^{pr2}$
Tags:
IIUC公司
相关问题 更多 >
编程相关推荐