pandas中使用groupby之后,下面的数据都没了,原来的dataframe中没有缺失值
model_variables_revenue_sum=model_variables.groupby(['days_hours','hours_after_open','day_of_week','days_after_open']).sum()
model_variables_revenue_sum.reset_index()
day_hours那一列995后面的都没了