题解 | #牛客网每日正确与错误的答题次数#
牛客网每日正确与错误的答题次数
https://www.nowcoder.com/practice/bd74b186d5954eb69c00ee804cebe364
import pandas as pd df = pd.read_csv('nowcoder.csv',sep=',') df['year-month-day'] = pd.to_datetime(df.date.str[:10])#接触到新写法 data = df.groupby(['result','year-month-day']).count().question_id#计算出每天的问题提交结果 print(data)