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

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

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

import sys
import  pandas as pd 
for line in sys.stdin:
    a = line.split()
    print(int(a[0]) + int(a[1]))
f=pd.read_csv("nowcoder.csv",sep=",")
f1=f[f["date"]>="2021/12/01"] 
f3=f1[f1["date"]<="2021/12/31"]
f3["year-month-day"]=pd.to_datetime(f["date"],format="%Y-%m-%d")
f4=f3.groupby(["result","year-month-day"]).question_id.count()
print(f4)

全部评论

相关推荐

2025-12-03 15:46
辽宁科技大学 golang
回家当保安:加油, 我当时也想拒字节面试,是被HR鼓励着我面试。然后走了2周流程 ,一共3+1 面,最后惊喜的发了offer。佬可以试试
点赞 评论 收藏
分享
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务