From bcce635bb8810bbde517c1b6182879566795d615 Mon Sep 17 00:00:00 2001 From: David Roff Date: Thu, 12 Dec 2024 11:25:26 +0100 Subject: [PATCH] link to unlocode.info --- scripts/generate_pages.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/generate_pages.py b/scripts/generate_pages.py index dbaa7b1..7d3b27c 100644 --- a/scripts/generate_pages.py +++ b/scripts/generate_pages.py @@ -159,6 +159,13 @@ def clean_date(x): if pd.notna(code) else code ) + country_data["Location"] = country_data["Location"].apply( + lambda code: f'{code}' + if pd.notna(code) else code + ) + + + cf.write(country_data.to_html(index=False, escape=False, classes="unlocode-table")) cf.write(footer_template)