Penguni commited on
Commit
8f2a292
·
verified ·
1 Parent(s): 0941b5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +77 -3
app.py CHANGED
@@ -31,12 +31,86 @@ country_mapping = {
31
  'South Africa': 'ZAF',
32
  'Poland': 'POL',
33
  'Austria': 'AUT',
34
- 'Turkey': 'TUR'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  }
36
 
37
 
38
-
39
-
40
  # Load your dataframes
41
  df_tv_series= pd.read_csv('series_after_cleaning.csv')
42
  df_movies= pd.read_csv('movie_after_cleaning.csv')
 
31
  'South Africa': 'ZAF',
32
  'Poland': 'POL',
33
  'Austria': 'AUT',
34
+ 'Turkey': 'TUR',
35
+ 'Brazil': 'BRA',
36
+ 'Russia': 'RUS',
37
+ 'Argentina': 'ARG',
38
+ 'Singapore': 'SGP',
39
+ 'Thailand': 'THA',
40
+ 'Portugal': 'PRT',
41
+ 'Greece': 'GRC',
42
+ 'Egypt': 'EGY',
43
+ 'Vietnam': 'VNM',
44
+ 'Malaysia': 'MYS',
45
+ 'Philippines': 'PHL',
46
+ 'Taiwan': 'TWN',
47
+ 'Israel': 'ISR',
48
+ 'Saudi Arabia': 'SAU',
49
+ 'Indonesia': 'IDN',
50
+ 'Pakistan': 'PAK',
51
+ 'Iran': 'IRN',
52
+ 'Iraq': 'IRQ',
53
+ 'Syria': 'SYR',
54
+ 'Lebanon': 'LBN',
55
+ 'Jordan': 'JOR',
56
+ 'Qatar': 'QAT',
57
+ 'Oman': 'OMN',
58
+ 'Kuwait': 'KWT',
59
+ 'Bahrain': 'BHR',
60
+ 'Yemen': 'YEM',
61
+ 'Morocco': 'MAR',
62
+ 'Tunisia': 'TUN',
63
+ 'Algeria': 'DZA',
64
+ 'Libya': 'LBY',
65
+ 'Sudan': 'SDN',
66
+ 'Kenya': 'KEN',
67
+ 'Nigeria': 'NGA',
68
+ 'Ghana': 'GHA',
69
+ 'Ethiopia': 'ETH',
70
+ 'South Africa': 'ZAF',
71
+ 'Botswana': 'BWA',
72
+ 'Namibia': 'NAM',
73
+ 'Zimbabwe': 'ZWE',
74
+ 'Zambia': 'ZMB',
75
+ 'Uganda': 'UGA',
76
+ 'Rwanda': 'RWA',
77
+ 'Burundi': 'BDI',
78
+ 'Tanzania': 'TZA',
79
+ 'Angola': 'AGO',
80
+ 'Mozambique': 'MOZ',
81
+ 'Madagascar': 'MDG',
82
+ 'Mauritius': 'MUS',
83
+ 'Somalia': 'SOM',
84
+ 'Somaliland': 'SOM',
85
+ 'Senegal': 'SEN',
86
+ 'Ivory Coast': 'CIV',
87
+ 'Cameroon': 'CMR',
88
+ 'Benin': 'BEN',
89
+ 'Togo': 'TGO',
90
+ 'Gambia': 'GMB',
91
+ 'Guinea': 'GIN',
92
+ 'Guinea-Bissau': 'GNB',
93
+ 'Equatorial Guinea': 'GNQ',
94
+ 'Gabon': 'GAB',
95
+ 'Congo': 'COG',
96
+ 'Democratic Republic of the Congo': 'COD',
97
+ 'Central African Republic': 'CAF',
98
+ 'Chad': 'TCD',
99
+ 'Niger': 'NER',
100
+ 'Mali': 'MLI',
101
+ 'Burkina Faso': 'BFA',
102
+ 'Mauritania': 'MRT',
103
+ 'Western Sahara': 'ESH',
104
+ 'Sierra Leone': 'SLE',
105
+ 'Liberia': 'LBR',
106
+ 'Cape Verde': 'CPV',
107
+ 'Seychelles': 'SYC',
108
+ 'Comoros': 'COM',
109
+ 'Mauritius': 'MUS',
110
+ 'Maldives': 'MDV'
111
  }
112
 
113
 
 
 
114
  # Load your dataframes
115
  df_tv_series= pd.read_csv('series_after_cleaning.csv')
116
  df_movies= pd.read_csv('movie_after_cleaning.csv')