hmb HF Staff commited on
Commit
0c9d807
·
verified ·
1 Parent(s): 74ead6a

Create nomad_data.py

Browse files
Files changed (1) hide show
  1. nomad_data.py +297 -0
nomad_data.py ADDED
@@ -0,0 +1,297 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dataset of top digital nomad locations with associated datapoints
2
+ data = [
3
+ {
4
+ 'City': 'Brasília',
5
+ 'Country': 'Brazil',
6
+ 'Internet Speed (Mbps)': 75,
7
+ 'Monthly Cost Living (USD)': 800,
8
+ 'Quality of Life': 7.3,
9
+ 'Digital Nomad Visa': 'Yes',
10
+ 'Visa Length (Months)': 12,
11
+ 'Visa Cost (USD)': 100,
12
+ 'Key Feature': 'Modern infrastructure and affordable living',
13
+ 'Data Source': 'InsureMyTrip'
14
+ },
15
+ {
16
+ 'City': 'Budapest',
17
+ 'Country': 'Hungary',
18
+ 'Internet Speed (Mbps)': 100,
19
+ 'Monthly Cost Living (USD)': 1000,
20
+ 'Quality of Life': 7.1,
21
+ 'Digital Nomad Visa': 'No',
22
+ 'Visa Length (Months)': None,
23
+ 'Visa Cost (USD)': None,
24
+ 'Key Feature': 'Rich cultural experience with vibrant nightlife',
25
+ 'Data Source': 'InsureMyTrip & Forbes'
26
+ },
27
+ {
28
+ 'City': 'Montevideo',
29
+ 'Country': 'Uruguay',
30
+ 'Internet Speed (Mbps)': 80,
31
+ 'Monthly Cost Living (USD)': 900,
32
+ 'Quality of Life': 6.9,
33
+ 'Digital Nomad Visa': 'No',
34
+ 'Visa Length (Months)': None,
35
+ 'Visa Cost (USD)': None,
36
+ 'Key Feature': 'Balanced work-life in a coastal setting',
37
+ 'Data Source': 'InsureMyTrip'
38
+ },
39
+ {
40
+ 'City': 'Lisbon',
41
+ 'Country': 'Portugal',
42
+ 'Internet Speed (Mbps)': 150,
43
+ 'Monthly Cost Living (USD)': 1000,
44
+ 'Quality of Life': 6.8,
45
+ 'Digital Nomad Visa': 'Yes',
46
+ 'Visa Length (Months)': 12,
47
+ 'Visa Cost (USD)': 70,
48
+ 'Key Feature': 'Vibrant culture with coastal charm',
49
+ 'Data Source': 'Forbes & Nomad List'
50
+ },
51
+ {
52
+ 'City': 'Tbilisi',
53
+ 'Country': 'Georgia',
54
+ 'Internet Speed (Mbps)': 50,
55
+ 'Monthly Cost Living (USD)': 500,
56
+ 'Quality of Life': 7.0,
57
+ 'Digital Nomad Visa': 'Yes',
58
+ 'Visa Length (Months)': 12,
59
+ 'Visa Cost (USD)': 50,
60
+ 'Key Feature': 'Rich cultural heritage and affordability',
61
+ 'Data Source': 'The Shooting Star'
62
+ },
63
+ {
64
+ 'City': 'Chiang Mai',
65
+ 'Country': 'Thailand',
66
+ 'Internet Speed (Mbps)': 200,
67
+ 'Monthly Cost Living (USD)': 800,
68
+ 'Quality of Life': 7.5,
69
+ 'Digital Nomad Visa': 'No',
70
+ 'Visa Length (Months)': None,
71
+ 'Visa Cost (USD)': None,
72
+ 'Key Feature': 'Affordable living with a strong digital nomad community',
73
+ 'Data Source': 'Nomad Gossip'
74
+ },
75
+ {
76
+ 'City': 'Dubai',
77
+ 'Country': 'United Arab Emirates',
78
+ 'Internet Speed (Mbps)': 195,
79
+ 'Monthly Cost Living (USD)': 3500,
80
+ 'Quality of Life': 8.0,
81
+ 'Digital Nomad Visa': 'Yes',
82
+ 'Visa Length (Months)': 12,
83
+ 'Visa Cost (USD)': 150,
84
+ 'Key Feature': 'Tax-free environment with premium amenities',
85
+ 'Data Source': 'Nomad Gossip'
86
+ },
87
+ {
88
+ 'City': 'Valencia',
89
+ 'Country': 'Spain',
90
+ 'Internet Speed (Mbps)': 151,
91
+ 'Monthly Cost Living (USD)': 900,
92
+ 'Quality of Life': 6.5,
93
+ 'Digital Nomad Visa': 'Yes',
94
+ 'Visa Length (Months)': 12,
95
+ 'Visa Cost (USD)': 70,
96
+ 'Key Feature': 'Coastal living with vibrant cultural experiences',
97
+ 'Data Source': 'Dojo Report'
98
+ },
99
+ {
100
+ 'City': 'Rome',
101
+ 'Country': 'Italy',
102
+ 'Internet Speed (Mbps)': 113,
103
+ 'Monthly Cost Living (USD)': 1200,
104
+ 'Quality of Life': 6.0,
105
+ 'Digital Nomad Visa': 'Yes',
106
+ 'Visa Length (Months)': 12,
107
+ 'Visa Cost (USD)': 100,
108
+ 'Key Feature': 'Rich historical and cultural offerings',
109
+ 'Data Source': 'Dojo Report'
110
+ },
111
+ {
112
+ 'City': 'Quebec City',
113
+ 'Country': 'Canada',
114
+ 'Internet Speed (Mbps)': 35.2,
115
+ 'Monthly Cost Living (USD)': 725,
116
+ 'Quality of Life': 7.0,
117
+ 'Digital Nomad Visa': 'No',
118
+ 'Visa Length (Months)': None,
119
+ 'Visa Cost (USD)': None,
120
+ 'Key Feature': 'European charm in North America',
121
+ 'Data Source': 'Forbes'
122
+ },
123
+ {
124
+ 'City': 'Catania',
125
+ 'Country': 'Italy',
126
+ 'Internet Speed (Mbps)': 141.82,
127
+ 'Monthly Cost Living (USD)': 650,
128
+ 'Quality of Life': 6.0,
129
+ 'Digital Nomad Visa': 'Yes',
130
+ 'Visa Length (Months)': 12,
131
+ 'Visa Cost (USD)': 100,
132
+ 'Key Feature': 'Historic city with a coastal vibe',
133
+ 'Data Source': 'Forbes'
134
+ },
135
+ {
136
+ 'City': 'Medellín',
137
+ 'Country': 'Colombia',
138
+ 'Internet Speed (Mbps)': 30,
139
+ 'Monthly Cost Living (USD)': 850,
140
+ 'Quality of Life': 7.2,
141
+ 'Digital Nomad Visa': 'No',
142
+ 'Visa Length (Months)': None,
143
+ 'Visa Cost (USD)': None,
144
+ 'Key Feature': 'Spring-like climate year-round with growing nomad community',
145
+ 'Data Source': 'Reddit & Passport Heavy'
146
+ },
147
+ {
148
+ 'City': 'Mexico City',
149
+ 'Country': 'Mexico',
150
+ 'Internet Speed (Mbps)': 50,
151
+ 'Monthly Cost Living (USD)': 800,
152
+ 'Quality of Life': 7.2,
153
+ 'Digital Nomad Visa': 'No',
154
+ 'Visa Length (Months)': None,
155
+ 'Visa Cost (USD)': None,
156
+ 'Growth Trend (5 Years)': '+70%',
157
+ 'Key Feature': 'Affordable, vibrant culture, strong community',
158
+ },
159
+ {
160
+ 'City': 'Tokyo',
161
+ 'Country': 'Japan',
162
+ 'Internet Speed (Mbps)': 300,
163
+ 'Monthly Cost Living (USD)': 1500,
164
+ 'Quality of Life': 8.5,
165
+ 'Digital Nomad Visa': 'Yes',
166
+ 'Visa Length (Months)': 12,
167
+ 'Visa Cost (USD)': 200,
168
+ 'Growth Trend (5 Years)': '+60%',
169
+ 'Key Feature': 'Tech-friendly, excellent infrastructure, safe',
170
+ },
171
+ {
172
+ 'City': 'Tbilisi',
173
+ 'Country': 'Georgia',
174
+ 'Internet Speed (Mbps)': 50,
175
+ 'Monthly Cost Living (USD)': 500,
176
+ 'Quality of Life': 7.0,
177
+ 'Digital Nomad Visa': 'Yes',
178
+ 'Visa Length (Months)': 12,
179
+ 'Visa Cost (USD)': 50,
180
+ 'Growth Trend (5 Years)': '+92%',
181
+ 'Key Feature': 'Affordable, fast-growing hub, visa-free stays for 365 days',
182
+ },
183
+ {
184
+ 'City': 'Madrid',
185
+ 'Country': 'Spain',
186
+ 'Internet Speed (Mbps)': 150,
187
+ 'Monthly Cost Living (USD)': 1200,
188
+ 'Quality of Life': 7.8,
189
+ 'Digital Nomad Visa': 'Yes',
190
+ 'Visa Length (Months)': 12,
191
+ 'Visa Cost (USD)': 70,
192
+ 'Growth Trend (5 Years)': '+80%',
193
+ 'Key Feature': 'Cultural hub, good infrastructure, digital nomad visa available',
194
+ },
195
+ {
196
+ 'City': 'Seoul',
197
+ 'Country': 'South Korea',
198
+ 'Internet Speed (Mbps)': 400,
199
+ 'Monthly Cost Living (USD)': 1400,
200
+ 'Quality of Life': 8.0,
201
+ 'Digital Nomad Visa': 'Yes',
202
+ 'Visa Length (Months)': 12,
203
+ 'Visa Cost (USD)': 150,
204
+ 'Growth Trend (5 Years)': '+76%',
205
+ 'Key Feature': "Ultrafast internet, efficient public transport, new digital nomad visa",
206
+ },
207
+ {
208
+ "City": "Porto",
209
+ "Country": "Portugal",
210
+ "Internet Speed (Mbps)": 120,
211
+ "Monthly Cost Living (USD)": 1000,
212
+ "Quality of Life": 7.5,
213
+ "Digital Nomad Visa": "Yes",
214
+ "Visa Length (Months)": 12,
215
+ "Visa Cost (USD)": 70,
216
+ "Growth Trend (5 Years)": "+85%",
217
+ "Key Feature": "Cheaper than Lisbon, scenic, growing community",
218
+ },
219
+ {
220
+ "City": "Bari",
221
+ "Country": "Italy",
222
+ "Internet Speed (Mbps)": 88,
223
+ "Monthly Cost Living (USD)": 650,
224
+ "Quality of Life": 8.0,
225
+ "Digital Nomad Visa": "Yes",
226
+ "Visa Length (Months)": 12,
227
+ "Visa Cost (USD)": 125,
228
+ "Key Feature": "Charming coastal city with rich history",
229
+ "Data Source": "dojo.tech, numbeo.com"
230
+ },
231
+ {
232
+ "City": "Florence",
233
+ "Country": "Italy",
234
+ "Internet Speed (Mbps)": 100,
235
+ "Monthly Cost Living (USD)": 785,
236
+ "Quality of Life": 7.8,
237
+ "Digital Nomad Visa": "Yes",
238
+ "Visa Length (Months)": 12,
239
+ "Visa Cost (USD)": 125,
240
+ "Key Feature": "Renaissance art and architecture",
241
+ "Data Source": "dojo.tech, numbeo.com"
242
+ },
243
+ {
244
+ "City": "Las Palmas",
245
+ "Country": "Spain",
246
+ "Internet Speed (Mbps)": 207,
247
+ "Monthly Cost Living (USD)": 600,
248
+ "Quality of Life": 9.4,
249
+ "Digital Nomad Visa": "Yes",
250
+ "Visa Length (Months)": 12,
251
+ "Visa Cost (USD)": 80,
252
+ "Key Feature": "Coastal city with warm climate and beach attractions",
253
+ "Data Source": "dojo.tech, numbeo.com"
254
+ },
255
+ {
256
+ "City": "Palermo",
257
+ "Country": "Italy",
258
+ "Internet Speed (Mbps)": 99,
259
+ "Monthly Cost Living (USD)": 660,
260
+ "Quality of Life": 7.1,
261
+ "Digital Nomad Visa": "Yes",
262
+ "Visa Length (Months)": 12,
263
+ "Visa Cost (USD)": 125,
264
+ "Key Feature": "Historic city with coastal charm",
265
+ "Data Source": "dojo.tech, numbeo.com"
266
+ },
267
+ {
268
+ "City": "Ottawa",
269
+ "Country": "Canada",
270
+ "Internet Speed (Mbps)": 89,
271
+ "Monthly Cost Living (USD)": 1168,
272
+ "Quality of Life": 8.4,
273
+ "Digital Nomad Visa": "Yes (visitor visa)",
274
+ "Visa Length (Months)": 6,
275
+ "Visa Cost (USD)": 75,
276
+ "Key Feature": "Capital city with diverse culture and natural beauty",
277
+ "Data Source": "dojo.tech, numbeo.com"
278
+ },
279
+ ]
280
+
281
+ # Add country emojis mapping
282
+ country_emoji_map = {
283
+ "Brazil": "🇧🇷 Brazil",
284
+ "Hungary": "🇭🇺 Hungary",
285
+ "Uruguay": "🇺🇾 Uruguay",
286
+ "Portugal": "🇵🇹 Portugal",
287
+ "Georgia": "🇬🇪 Georgia",
288
+ "Thailand": "🇹🇭 Thailand",
289
+ "United Arab Emirates": "🇦🇪 United Arab Emirates",
290
+ "Spain": "🇪🇸 Spain",
291
+ "Italy": "🇮🇹 Italy",
292
+ "Canada": "🇨🇦 Canada",
293
+ "Colombia": "🇨🇴 Colombia",
294
+ "Mexico": "🇲🇽 Mexico",
295
+ "Japan": "🇯🇵 Japan",
296
+ "South Korea": "��🇷 South Korea",
297
+ }