可以用pivot_table wide_df = agg_df.pivot_table(index='id', columns='day', values='amt', fill_value=0)
点赞 评论

相关推荐

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