已有数据ts.get_k_data('000507',start = '2020-09-01',end = '2021-06-30')如何将收盘价的变化趋势以折线图的形式可视化
首先从数据框中取出数组,x=df['date'],y=df['close'],使用matplotlib的plot函数作出折线图。