rest_names = df_rating_count[df_rating_count["rating"]>50]['restaurant_name'] ## 完成代码获取评分数超过50的餐厅名称 打印(rest_names)
df_mean_4 = df_rated[df_rated['restaurant_name'].isin(rest_names)].copy() 打印(df_mean_4)
df_mean_4.groupby(['rating'])['rest_names'].mean().sort_values(ascending = False).reset_index().dropna() ## 完成代码以找到平均评分
KeyError: 'Column not found: rest_names' 是我遇到的错误。有人可以帮忙吗
KeyError:'找不到列:rest_names'