well lets try some dates

This commit is contained in:
Stephen Smoogen 2017-02-15 20:46:59 +00:00
parent da7c4b9456
commit 4ab43e5ffe
2 changed files with 3 additions and 3 deletions

View file

@ -1,10 +1,10 @@
BEGIN{ BEGIN{
date=strftime("%F",0); date=strftime("%F",172800);
count=1; count=1;
sum=0; sum=0;
most=0; most=0;
least=0 least=0
print date ",AVG,LEAST,MAX" print "1970-01-01,AVG,LEAST,MAX"
} }
{ {

View file

@ -30,7 +30,7 @@ rolling = 7
tree = {} tree = {}
df = pandas.read_csv("hotspot-new.csv") df = pandas.read_csv("/var/www/html/csv-reports/hotspot/hotspotdata-all.csv")
dates = df['1970-01-01'] dates = df['1970-01-01']
AVG = pandas.rolling_mean(df['AVG'],rolling) AVG = pandas.rolling_mean(df['AVG'],rolling)