[英]How to keep a track of what color the code as assigned to the different categories within a column grouped by some column,?
prog_rev_df.groupby('L2Discipline').Total.plot(kind='line',legend=prog_rev_df['L2Discipline'].any())
这是我的问题的解决方法。 它很丑,但它有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.