アットウィキロゴ

ぐういいい

from matplotlib import pyplot
 
f=open("pp.csv","r",encoding='utf-8')
a=[]
y=[]
c=[]
p=[]
 
for line in f:
    x3=line.split(",")
    a.append(x3[0])
    c.append(x3[1])
    y.append(int(x3[2]))
    p.append(int(x3[3]))
f.close()
 
code="211177"
 
q1=[]
q2=[]
for i in range(len(a)): 
    if c[i]==code:q1.append(y[i])
    if c[i]==code:q2.append(p[i])
 
 
pyplot.plot(q1,q2) 
pyplot.show() 
最終更新:2018年02月19日 15:35