Skip to content

Commit 8090ee4

Browse files
committed
Improved city data
1 parent e39153f commit 8090ee4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/rich_tables.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
["🇧🇩", "Dhaka", "Bangladesh", 24_652_900],
2121
["🇪🇬", "Cairo (القاهرة)", "Egypt", 23_074_200],
2222
["🇪🇬", "São Paulo", "Brazil", 22_990_000],
23+
["🇲🇽", "Mexico City", "Mexico", 22_752_400],
24+
["🇨🇳", "Beijing (北京)", "China", 22_596_500],
25+
["🇮🇳", "Mumbai", "India", 22_089_000],
26+
["🇯🇵", "Osaka (大阪)", "Japan", 18_921_600],
2327
]
2428

2529
COUNTRY_HEADERS = [
@@ -64,7 +68,7 @@ def __init__(self) -> None:
6468
def do_cities(self, _: cmd2.Statement) -> None:
6569
"""Display the cities with the largest population."""
6670
table = Table(show_footer=False)
67-
table.title = "Largest Cities by Population 2025"
71+
table.title = "10 Largest Cities by Population 2025"
6872
table.caption = "Data from https://worldpopulationreview.com/"
6973

7074
for header in CITY_HEADERS:

0 commit comments

Comments
 (0)