and put in a header column

This commit is contained in:
Stephen Smoogen 2016-05-07 15:45:37 +00:00
parent 03dcf5b451
commit 1b0eadefd6

View file

@ -89,6 +89,8 @@ unk_arc = pandas.rolling_mean(df['54-unk_arc'], rolling)
centos = pandas.rolling_mean(df['55-centos'], rolling)
rhel = pandas.rolling_mean(df['56-rhel'], rolling)
print "1970-01-01,02-epel4,03-epel5,04-epel6,05-epel7,06-f03,07-f04,08-f05,09-f06,10-f07,11-f08,12-f09,13-f10,14-f11,15-f12,16-f13,17-f14,18-f15,19-f16,20-f17,21-f18,22-f19,23-f20,24-f21,25-f22,26-f23,27-f24,28-f25,29-f26,30-f27,31-f28,32-f29,33-rawhide,34-unk_rel,35-epel,36-fedora,37-alpha,38-arm,39-arm64,40-ia64,41-mips,42-ppc,43-s390,44-sparc,45-tilegx,46-x86_32,47-x86_64,48-x86_32_e,49-x86_32_f,50-x86_64_e,51-x86_64_f,52-ppc_e,53-ppc_f,54-unk_arc,55-centos,56-rhel";
for i in xrange(0,len(dates)):
if math.isnan(epel4[i]):
csv_line = ",".join([dates[i],"0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"])