poemsforaphrodite commited on
Commit
816dd30
1 Parent(s): 2e56ea4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +31 -1
app.py CHANGED
@@ -59,7 +59,37 @@ DEVICE_OPTIONS = ["All Devices", "desktop", "mobile", "tablet"]
59
  BASE_DIMENSIONS = ["page", "query", "country", "date"]
60
  MAX_ROWS = 250_000
61
  DF_PREVIEW_ROWS = 100
62
- COUNTRY_OPTIONS = sorted([(country.alpha_2, country.name) for country in pycountry.countries], key=lambda x: x[1])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
 
64
  # -------------
65
  # Streamlit App Configuration
 
59
  BASE_DIMENSIONS = ["page", "query", "country", "date"]
60
  MAX_ROWS = 250_000
61
  DF_PREVIEW_ROWS = 100
62
+ COUNTRY_OPTIONS = [
63
+ ("", "All Countries"),
64
+ ("af", "Afghanistan"), ("al", "Albania"), ("dz", "Algeria"), ("as", "American Samoa"),
65
+ ("ad", "Andorra"), ("ao", "Angola"), ("ai", "Anguilla"), ("aq", "Antarctica"),
66
+ ("ag", "Antigua and Barbuda"), ("ar", "Argentina"), ("am", "Armenia"), ("aw", "Aruba"),
67
+ ("au", "Australia"), ("at", "Austria"), ("az", "Azerbaijan"), ("bs", "Bahamas"),
68
+ ("bh", "Bahrain"), ("bd", "Bangladesh"), ("bb", "Barbados"), ("by", "Belarus"),
69
+ ("be", "Belgium"), ("bz", "Belize"), ("bj", "Benin"), ("bm", "Bermuda"),
70
+ ("bt", "Bhutan"), ("bo", "Bolivia"), ("ba", "Bosnia and Herzegovina"), ("bw", "Botswana"),
71
+ ("bv", "Bouvet Island"), ("br", "Brazil"), ("io", "British Indian Ocean Territory"),
72
+ ("bn", "Brunei"), ("bg", "Bulgaria"), ("bf", "Burkina Faso"), ("bi", "Burundi"),
73
+ ("kh", "Cambodia"), ("cm", "Cameroon"), ("ca", "Canada"), ("cv", "Cape Verde"),
74
+ ("ky", "Cayman Islands"), ("cf", "Central African Republic"), ("td", "Chad"),
75
+ ("cl", "Chile"), ("cn", "China"), ("cx", "Christmas Island"), ("cc", "Cocos (Keeling) Islands"),
76
+ ("co", "Colombia"), ("km", "Comoros"), ("cg", "Congo"), ("cd", "Congo, Democratic Republic"),
77
+ ("ck", "Cook Islands"), ("cr", "Costa Rica"), ("ci", "Cote D'Ivoire"), ("hr", "Croatia"),
78
+ ("cu", "Cuba"), ("cy", "Cyprus"), ("cz", "Czech Republic"), ("dk", "Denmark"),
79
+ ("dj", "Djibouti"), ("dm", "Dominica"), ("do", "Dominican Republic"), ("ec", "Ecuador"),
80
+ ("eg", "Egypt"), ("sv", "El Salvador"), ("gq", "Equatorial Guinea"), ("er", "Eritrea"),
81
+ ("ee", "Estonia"), ("et", "Ethiopia"), ("fk", "Falkland Islands (Malvinas)"),
82
+ ("fo", "Faroe Islands"), ("fj", "Fiji"), ("fi", "Finland"), ("fr", "France"),
83
+ ("gf", "French Guiana"), ("pf", "French Polynesia"), ("tf", "French Southern Territories"),
84
+ ("ga", "Gabon"), ("gm", "Gambia"), ("ge", "Georgia"), ("de", "Germany"), ("gh", "Ghana"),
85
+ ("gi", "Gibraltar"), ("gr", "Greece"), ("gl", "Greenland"), ("gd", "Grenada"),
86
+ ("gp", "Guadeloupe"), ("gu", "Guam"), ("gt", "Guatemala"), ("gn", "Guinea"),
87
+ ("gw", "Guinea-Bissau"), ("gy", "Guyana"), ("ht", "Haiti"),
88
+ ("hm", "Heard Island and Mcdonald Islands"), ("va", "Holy See (Vatican City State)"),
89
+ ("hn", "Honduras"), ("hk", "Hong Kong"), ("hu", "Hungary"), ("is", "Iceland"),
90
+ ("in", "India"), ("id", "Indonesia"), ("ir", "Iran, Islamic Republic of"), ("iq", "Iraq"),
91
+ ("ie", "Ireland"), ("il", "Israel"),
92
+ ]
93
 
94
  # -------------
95
  # Streamlit App Configuration