考虑以下pandas数据帧:
time val server state
2015-01-01 00:00:00 10 server01 normal
2015-01-01 00:02:00 18 server01 high
2015-01-01 00:03:00 41 server01 high
2015-01-01 00:04:00 22 server01 high
2015-01-01 01:05:00 32 server01 normal
2015-01-01 01:06:00 10 server01 high
2015-01-01 01:07:00 42 server01 normal
2015-01-01 01:08:00 24 server01 normal
...........
在时间序列图表上绘制时,如何绘制state = high
?
这样的事情:
答案 0 :(得分:6)