fix y_1 int conversion

This commit is contained in:
Simon 2024-04-03 15:48:59 +02:00
parent c3cba3ca89
commit bb25aff95e
Signed by: simon
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 2 additions and 1 deletions

View File

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