题解 | #牛客网每日正确与错误的答题次数#

牛客网每日正确与错误的答题次数

https://www.nowcoder.com/practice/bd74b186d5954eb69c00ee804cebe364

import pandas as pd
nowcoder = pd.read_csv('nowcoder.csv')
nowcoder['date']=pd.to_datetime(nowcoder['date'])
nowcoder['year-month-day']=nowcoder['date'].apply(lambda x:x.strftime('%Y-%m-%d'))

a=nowcoder.groupby(['result','year-month-day'])['year-month-day'].count()
print(a)
全部评论

相关推荐

评论
1
收藏
分享
牛客网
牛客企业服务