item.append(int(relative_change(float(item[-4]), float(item[-2]))))
else:
item.append("n/a")
- if (len(item) == len(header)) and (item[-5] is not None):
+ if (len(item) == len(header)) and (item[-3] is not None):
tbl_lst.append(item)
# Sort the table according to the relative change
item.append(int(relative_change(float(item[-4]), float(item[-2]))))
else:
item.append("n/a")
- if (len(item) == len(header)) and (item[-5] is not None):
+ if (len(item) == len(header)) and (item[-3] is not None):
tbl_lst.append(item)
# Sort the table according to the relative change