and here we find ingenious ways to use cut and paste to trip ourselves up tomorrow

This commit is contained in:
Stephen Smoogen 2018-07-30 22:18:22 +00:00
parent 1787e1df5e
commit ba0aea4421
4 changed files with 59 additions and 7 deletions

View file

@ -64,6 +64,10 @@ fed26 = pandas.rolling_mean(df['29-f26'], rolling)
fed27 = pandas.rolling_mean(df['30-f27'], rolling)
fed28 = pandas.rolling_mean(df['31-f28'], rolling)
fed29 = pandas.rolling_mean(df['32-f29'], rolling)
fed30 = pandas.rolling_mean(df['65-f30'], rolling)
fed31 = pandas.rolling_mean(df['66-f31'], rolling)
fed32 = pandas.rolling_mean(df['67-f32'], rolling)
fed33 = pandas.rolling_mean(df['68-f33'], rolling)
rawhide = pandas.rolling_mean(df['33-rawhide'], rolling)
unk_rel = pandas.rolling_mean(df['34-unk_rel'], rolling)
EPEL = pandas.rolling_mean(df['35-epel'], rolling)
@ -96,12 +100,15 @@ modular_f27 = pandas.rolling_mean(df['61-modular_f27'], rolling)
modular_f28 = pandas.rolling_mean(df['62-modular_f28'], rolling)
modular_f29 = pandas.rolling_mean(df['63-modular_f29'], rolling)
modular_f30 = pandas.rolling_mean(df['64-modular_f30'], rolling)
modular_f31 = pandas.rolling_mean(df['69-modular_f31'], rolling)
modular_f32 = pandas.rolling_mean(df['70-modular_f32'], rolling)
modular_f33 = pandas.rolling_mean(df['71-modular_f33'], 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,57-ppc64,58-ppc64le,59-modular,60-modular_rawhide,61-modular_f27,62-modular_f28,63-modular_f29,64-modular_f30";
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,57-ppc64,58-ppc64le,59-modular,60-modular_rawhide,61-modular_f27,62-modular_f28,63-modular_f29,64-modular_f30,65-f30,66-f31,67-f32,68-f33,69-modular_f31,70-modular_f32,71-modular_f33";
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","0","0","0","0","0","0","0","0"])
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","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0"])
else:
csv_line = ",".join([dates[i],str(int(epel4[i])),str(int(epel5[i])),str(int(epel6[i])),str(int(epel7[i])),str(int(fed03[i])),str(int(fed04[i])),str(int(fed05[i])),str(int(fed06[i])),str(int(fed07[i])),str(int(fed08[i])),str(int(fed09[i])),str(int(fed10[i])),str(int(fed11[i])),str(int(fed12[i])),str(int(fed13[i])),str(int(fed14[i])),str(int(fed15[i])),str(int(fed16[i])),str(int(fed17[i])),str(int(fed18[i])),str(int(fed19[i])),str(int(fed20[i])),str(int(fed21[i])),str(int(fed22[i])),str(int(fed23[i])),str(int(fed24[i])),str(int(fed25[i])),str(int(fed26[i])),str(int(fed27[i])),str(int(fed28[i])),str(int(fed29[i])),str(int(rawhide[i])),str(int(unk_rel[i])),str(int(EPEL[i])),str(int(Fedora[i])),str(int(alpha[i])),str(int(ARM[i])),str(int(ARM64[i])),str(int(ia64[i])),str(int(mips[i])),str(int(ppc[i])),str(int(s390[i])),str(int(sparc[i])),str(int(tilegx[i])),str(int(x86_32[i])),str(int(x86_64[i])), str(int(x86_32_e[i])),str(int(x86_32_f[i])),str(int(x86_64_e[i])),str(int(x86_64_f[i])),str(int(ppc_e[i])),str(int(ppc_f[i])), str(int(unk_arc[i])),str(int(centos[i])),str(int(rhel[i])),str(int(ppc64[i])),str(int(ppc64le[i])),str(int(modular[i])),str(int(modular_rawhide[i])),str(int(modular_f27[i])),str(int(modular_f28[i])),str(int(modular_f29[i])),str(int(modular_f30[i]))])
csv_line = ",".join([dates[i],str(int(epel4[i])),str(int(epel5[i])),str(int(epel6[i])),str(int(epel7[i])),str(int(fed03[i])),str(int(fed04[i])),str(int(fed05[i])),str(int(fed06[i])),str(int(fed07[i])),str(int(fed08[i])),str(int(fed09[i])),str(int(fed10[i])),str(int(fed11[i])),str(int(fed12[i])),str(int(fed13[i])),str(int(fed14[i])),str(int(fed15[i])),str(int(fed16[i])),str(int(fed17[i])),str(int(fed18[i])),str(int(fed19[i])),str(int(fed20[i])),str(int(fed21[i])),str(int(fed22[i])),str(int(fed23[i])),str(int(fed24[i])),str(int(fed25[i])),str(int(fed26[i])),str(int(fed27[i])),str(int(fed28[i])),str(int(fed29[i])),str(int(rawhide[i])),str(int(unk_rel[i])),str(int(EPEL[i])),str(int(Fedora[i])),str(int(alpha[i])),str(int(ARM[i])),str(int(ARM64[i])),str(int(ia64[i])),str(int(mips[i])),str(int(ppc[i])),str(int(s390[i])),str(int(sparc[i])),str(int(tilegx[i])),str(int(x86_32[i])),str(int(x86_64[i])), str(int(x86_32_e[i])),str(int(x86_32_f[i])),str(int(x86_64_e[i])),str(int(x86_64_f[i])),str(int(ppc_e[i])),str(int(ppc_f[i])), str(int(unk_arc[i])),str(int(centos[i])),str(int(rhel[i])),str(int(ppc64[i])),str(int(ppc64le[i])),str(int(modular[i])),str(int(modular_rawhide[i])),str(int(modular_f27[i])),str(int(modular_f28[i])),str(int(modular_f29[i])),str(int(modular_f30[i])),str(int(f30[i])),str(int(f31[i])),str(int(f32[i])),str(int(f33[i])),str(int(modular_f31[i])),str(int(modular_f32[i])),str(int(modular_f33[i]))])
print csv_line