我的數據框來自 cvs,如下所示: Date Open High Low Close Adj Close Volume0 1996-01-01 4.06250 4.12500 3.8750 3.90625 3.093209 70488001 1996-02-01 3.84375 3.96875 3.5000 3.62500 2.870497 128640002 1996-03-01 3.50000 4.25000 3.5000 4.12500 3.266428 95264003 1996-04-01 4.06250 4.68750 4.0625 4.50000 3.563378 56936004 1996-05-01 4.40625 4.65625 4.1250 4.21875 3.340666 30480000當我嘗試繪制它時,圖表底部沒有日期。這是我正在使用的代碼:df = pd.read_csv('ABC.csv') #read cvsdf2 = df.loc[0:12] #select rowsdf2.set_index('Date', inplace=True) #set Date as indexdf2['Close'].plot() #plot
添加回答
舉報
0/150
提交
取消