1 回答
TA贡献1786条经验 获得超12个赞
您可能需要检查数据的生成/来源。您的绘图代码完全有效,产生:
这似乎是五个相同的地块。快速透视表明所有符号确实相同:roe
df.pivot('date','symbol','roe')
输出:
symbol APD FMC MLM NEM VMC
date
2005-12-31 11.2999 11.2999 11.2999 11.2999 11.2999
2006-12-31 14.2645 14.2645 14.2645 14.2645 14.2645
2007-12-31 15.6253 15.6253 15.6253 15.6253 15.6253
2008-12-31 35.8547 35.8547 35.8547 35.8547 35.8547
2009-12-31 22.6811 22.6811 22.6811 22.6811 22.6811
2010-12-31 18.3737 18.3737 18.3737 18.3737 18.3737
2011-12-31 32.2291 32.2291 32.2291 32.2291 32.2291
2012-12-31 29.7916 29.7916 29.7916 29.7916 29.7916
2013-12-31 23.6372 23.6372 23.6372 23.6372 23.6372
2014-12-31 19.6675 19.6675 19.6675 19.6675 19.6675
2015-12-31 -11.1408 -11.1408 -11.1408 -11.1408 -11.1408
2016-12-31 6.5580 6.5580 6.5580 6.5580 6.5580
2017-12-31 -4.9167 -4.9167 -4.9167 -4.9167 -4.9167
2018-12-31 16.7456 16.7456 16.7456 16.7456 16.7456
2019-12-31 21.2189 21.2189 21.2189 21.2189 21.2189
添加回答
举报