我的实验结果有以下数据:
我怎么能重塑它,使它看起来像这张桌子:
发布于 2022-05-09 12:20:37
根据您提供的数据,您应该能够使用.unstack()来完成以下操作:
.unstack()
print(df['counts'].unstack(level=['Model_1', 'Winloss']))
https://stackoverflow.com/questions/72177665
相似问题
领取专属 10元无门槛券
AI混元助手 在线答疑
洞察 腾讯核心技术
剖析业界实践案例