Compare commits

...

2 Commits

Author SHA1 Message Date
Simon bc95cba218
update deps 2024-04-03 15:49:28 +02:00
Simon bb25aff95e
fix y_1 int conversion 2024-04-03 15:48:59 +02:00
2 changed files with 4 additions and 3 deletions

View File

@ -1,11 +1,11 @@
APScheduler==3.10.4 APScheduler==3.10.4
Flask==3.0.2 Flask==3.0.2
Flask_HTTPAuth==4.8.0 Flask_HTTPAuth==4.8.0
ipython==8.22.2 ipython==8.23.0
matplotlib==3.8.3 matplotlib==3.8.3
numpy==1.26.4 numpy==1.26.4
pandas==2.2.1 pandas==2.2.1
psycopg2-binary==2.9.9 psycopg2-binary==2.9.9
requests==2.31.0 requests==2.31.0
scipy==1.12.0 scipy==1.13.0
uWSGI==2.0.24 uWSGI==2.0.24

View File

@ -524,10 +524,11 @@ class YearComparison:
avg_change = 'nan' avg_change = 'nan'
avg_row = ('avg 10 days', avg, y_avg, avg_change) avg_row = ('avg 10 days', avg, y_avg, avg_change)
# zip it # zip it
y_1 = self.axis['y_1'].astype(int).fillna("nan")
y_2 = self.axis['y_2'].astype(int).fillna("nan") y_2 = self.axis['y_2'].astype(int).fillna("nan")
y_2_change = self.axis['change'].astype(str).fillna("nan") y_2_change = self.axis['change'].astype(str).fillna("nan")
zipped = zip( zipped = zip(
self.axis['x'], self.axis['y_1'], self.axis['x'], y_1,
y_2, y_2_change y_2, y_2_change
) )
data_rows = list(zipped) data_rows = list(zipped)