import pandas as pd
import matplotlib.pyplot as plt
datt=pd.read_csv('data_test1.csv',usecols=[1,2],index_col=[0])
print(datt)
plt.plot(datt)
其中csv文件为
date, items, price
4, 5, 32
5, 10, 78
6, 15, 88
import pandas as pd
import matplotlib.pyplot as plt
datt=pd.read_csv('data_test1.csv',usecols=[1,2],index_col=[0])
print(datt)
plt.plot(datt)
其中csv文件为
date, items, price
4, 5, 32
5, 10, 78
6, 15, 88