Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

adding the data csv files

  • Loading branch information...
commit 3727bb3f98af3c33b4d332c29465e50c5641526f 1 parent 2cfd385
Martin De Wulf authored
14,152 2010/UN_POP/UN_POP_FEMALE/ESTIMATES-Table 1.csv
14,152 additions, 0 deletions not shown
39 2010/UN_POP/UN_POP_FEMALE/NOTES-Table 1.csv
... ... @@ -0,0 +1,39 @@
  1 +Notes
  2 +"* Countries or areas listed individually are only those with 100,000 inhabitants or more in 2010; the rest are included in the regional groups but are not listed separately."
  3 +(a) More developed regions comprise Europe, Northern America, Australia/New Zealand and Japan.
  4 +(b) Less developed regions comprise all regions of Africa, Asia (excluding Japan), Latin America and the Caribbean plus Melanesia, Micronesia and Polynesia.
  5 +(c) The least developed countries are 48 countries, 33 in Africa, 9 in Asia, 5 in Oceania plus one in Latin America and the Caribbean.
  6 +(d) Other less developed countries comprise the less developed regions excluding the least developed countries.
  7 +(e) Sub-Saharan Africa refers to all of Africa except Northern Africa, with the Sudan included in sub-Saharan Africa.
  8 +(1) Including Seychelles.
  9 +(2) Including Agalega, Rodrigues, and Saint Brandon.
  10 +(3) Including Zanzibar.
  11 +(4) Including Southern Sudan which voted in favor of independence, but was not an official UN Member State as of May 2011.
  12 +(5) Including Saint Helena, Ascension, and Tristan da Cunha.
  13 +(6) For statistical purposes, the data for China do not include Hong Kong and Macao, Special Administrative Regions (SAR) of China.
  14 +(7) As of 1 July 1997, Hong Kong became a Special Administrative Region (SAR) of China.
  15 +(8) As of 20 December 1999, Macao became a Special Administrative Region (SAR) of China.
  16 +(9) The regions Southern Asia and Central Asia are combined into South-Central Asia.
  17 +(10) Including Sabah and Sarawak.
  18 +(11) Including Nagorno-Karabakh.
  19 +(12) Including Northern-Cyprus.
  20 +(13) Including Abkhazia and South Ossetia.
  21 +(14) Including East Jerusalem.
  22 +(15) Including Transnistria.
  23 +(16) Including Faeroe Islands, and Isle of Man.
  24 +(17) Refers to Guernsey, and Jersey.
  25 +(18) Including Åland Islands.
  26 +(19) Including Svalbard and Jan Mayen Islands.
  27 +(20) Including Andorra, Gibraltar, Holy See, and San Marino.
  28 +(21) Including Kosovo.
  29 +(22) Including Canary Islands, Ceuta and Melilla.
  30 +(23) The former Yugoslav Republic of Macedonia.
  31 +(24) Including Liechtenstein, and Monaco.
  32 +(25) Including Anguilla, Antigua and Barbuda, British Virgin Islands, Cayman Islands, Dominica, Montserrat, Saint Kitts and Nevis, and Turks and Caicos Islands.
  33 +(26) Including Saint-Barthélemy and Saint-Martin (French part).
  34 +(27) Refers to Curaçao, Sint Maarten (Dutch part), Bonaire, Saba and Sint Eustatius.
  35 +(28) Including Falkland Islands (Malvinas).
  36 +(29) Including Bermuda, Greenland, and Saint Pierre and Miquelon.
  37 +(30) Including Christmas Island, Cocos (Keeling) Islands, and Norfolk Island.
  38 +(31) Including Kiribati, Marshall Islands, Nauru, Northern Mariana Islands, and Palau.
  39 +(32) Including American Samoa, Cook Islands, Niue, Pitcairn, Tokelau, Tuvalu, and Wallis and Futuna Islands.
20,880 2010/UN_POP/UN_POP_FEMALE_PREV/MEDIUM-Table 1.csv
20,880 additions, 0 deletions not shown
39 2010/UN_POP/UN_POP_FEMALE_PREV/NOTES-Table 1.csv
... ... @@ -0,0 +1,39 @@
  1 +Notes
  2 +"* Countries or areas listed individually are only those with 100,000 inhabitants or more in 2010; the rest are included in the regional groups but are not listed separately."
  3 +(a) More developed regions comprise Europe, Northern America, Australia/New Zealand and Japan.
  4 +(b) Less developed regions comprise all regions of Africa, Asia (excluding Japan), Latin America and the Caribbean plus Melanesia, Micronesia and Polynesia.
  5 +(c) The least developed countries are 48 countries, 33 in Africa, 9 in Asia, 5 in Oceania plus one in Latin America and the Caribbean.
  6 +(d) Other less developed countries comprise the less developed regions excluding the least developed countries.
  7 +(e) Sub-Saharan Africa refers to all of Africa except Northern Africa, with the Sudan included in sub-Saharan Africa.
  8 +(1) Including Seychelles.
  9 +(2) Including Agalega, Rodrigues, and Saint Brandon.
  10 +(3) Including Zanzibar.
  11 +(4) Including Southern Sudan which voted in favor of independence, but was not an official UN Member State as of May 2011.
  12 +(5) Including Saint Helena, Ascension, and Tristan da Cunha.
  13 +(6) For statistical purposes, the data for China do not include Hong Kong and Macao, Special Administrative Regions (SAR) of China.
  14 +(7) As of 1 July 1997, Hong Kong became a Special Administrative Region (SAR) of China.
  15 +(8) As of 20 December 1999, Macao became a Special Administrative Region (SAR) of China.
  16 +(9) The regions Southern Asia and Central Asia are combined into South-Central Asia.
  17 +(10) Including Sabah and Sarawak.
  18 +(11) Including Nagorno-Karabakh.
  19 +(12) Including Northern-Cyprus.
  20 +(13) Including Abkhazia and South Ossetia.
  21 +(14) Including East Jerusalem.
  22 +(15) Including Transnistria.
  23 +(16) Including Faeroe Islands, and Isle of Man.
  24 +(17) Refers to Guernsey, and Jersey.
  25 +(18) Including Åland Islands.
  26 +(19) Including Svalbard and Jan Mayen Islands.
  27 +(20) Including Andorra, Gibraltar, Holy See, and San Marino.
  28 +(21) Including Kosovo.
  29 +(22) Including Canary Islands, Ceuta and Melilla.
  30 +(23) The former Yugoslav Republic of Macedonia.
  31 +(24) Including Liechtenstein, and Monaco.
  32 +(25) Including Anguilla, Antigua and Barbuda, British Virgin Islands, Cayman Islands, Dominica, Montserrat, Saint Kitts and Nevis, and Turks and Caicos Islands.
  33 +(26) Including Saint-Barthélemy and Saint-Martin (French part).
  34 +(27) Refers to Curaçao, Sint Maarten (Dutch part), Bonaire, Saba and Sint Eustatius.
  35 +(28) Including Falkland Islands (Malvinas).
  36 +(29) Including Bermuda, Greenland, and Saint Pierre and Miquelon.
  37 +(30) Including Christmas Island, Cocos (Keeling) Islands, and Norfolk Island.
  38 +(31) Including Kiribati, Marshall Islands, Nauru, Northern Mariana Islands, and Palau.
  39 +(32) Including American Samoa, Cook Islands, Niue, Pitcairn, Tokelau, Tuvalu, and Wallis and Futuna Islands.
14,152 2010/UN_POP/UN_POP_MALE/ESTIMATES-Table 1.csv
14,152 additions, 0 deletions not shown
39 2010/UN_POP/UN_POP_MALE/NOTES-Table 1.csv
... ... @@ -0,0 +1,39 @@
  1 +Notes
  2 +"* Countries or areas listed individually are only those with 100,000 inhabitants or more in 2010; the rest are included in the regional groups but are not listed separately."
  3 +(a) More developed regions comprise Europe, Northern America, Australia/New Zealand and Japan.
  4 +(b) Less developed regions comprise all regions of Africa, Asia (excluding Japan), Latin America and the Caribbean plus Melanesia, Micronesia and Polynesia.
  5 +(c) The least developed countries are 48 countries, 33 in Africa, 9 in Asia, 5 in Oceania plus one in Latin America and the Caribbean.
  6 +(d) Other less developed countries comprise the less developed regions excluding the least developed countries.
  7 +(e) Sub-Saharan Africa refers to all of Africa except Northern Africa, with the Sudan included in sub-Saharan Africa.
  8 +(1) Including Seychelles.
  9 +(2) Including Agalega, Rodrigues, and Saint Brandon.
  10 +(3) Including Zanzibar.
  11 +(4) Including Southern Sudan which voted in favor of independence, but was not an official UN Member State as of May 2011.
  12 +(5) Including Saint Helena, Ascension, and Tristan da Cunha.
  13 +(6) For statistical purposes, the data for China do not include Hong Kong and Macao, Special Administrative Regions (SAR) of China.
  14 +(7) As of 1 July 1997, Hong Kong became a Special Administrative Region (SAR) of China.
  15 +(8) As of 20 December 1999, Macao became a Special Administrative Region (SAR) of China.
  16 +(9) The regions Southern Asia and Central Asia are combined into South-Central Asia.
  17 +(10) Including Sabah and Sarawak.
  18 +(11) Including Nagorno-Karabakh.
  19 +(12) Including Northern-Cyprus.
  20 +(13) Including Abkhazia and South Ossetia.
  21 +(14) Including East Jerusalem.
  22 +(15) Including Transnistria.
  23 +(16) Including Faeroe Islands, and Isle of Man.
  24 +(17) Refers to Guernsey, and Jersey.
  25 +(18) Including Åland Islands.
  26 +(19) Including Svalbard and Jan Mayen Islands.
  27 +(20) Including Andorra, Gibraltar, Holy See, and San Marino.
  28 +(21) Including Kosovo.
  29 +(22) Including Canary Islands, Ceuta and Melilla.
  30 +(23) The former Yugoslav Republic of Macedonia.
  31 +(24) Including Liechtenstein, and Monaco.
  32 +(25) Including Anguilla, Antigua and Barbuda, British Virgin Islands, Cayman Islands, Dominica, Montserrat, Saint Kitts and Nevis, and Turks and Caicos Islands.
  33 +(26) Including Saint-Barthélemy and Saint-Martin (French part).
  34 +(27) Refers to Curaçao, Sint Maarten (Dutch part), Bonaire, Saba and Sint Eustatius.
  35 +(28) Including Falkland Islands (Malvinas).
  36 +(29) Including Bermuda, Greenland, and Saint Pierre and Miquelon.
  37 +(30) Including Christmas Island, Cocos (Keeling) Islands, and Norfolk Island.
  38 +(31) Including Kiribati, Marshall Islands, Nauru, Northern Mariana Islands, and Palau.
  39 +(32) Including American Samoa, Cook Islands, Niue, Pitcairn, Tokelau, Tuvalu, and Wallis and Futuna Islands.
20,880 2010/UN_POP/UN_POP_MALE_PREV/MEDIUM-Table 1.csv
20,880 additions, 0 deletions not shown
39 2010/UN_POP/UN_POP_MALE_PREV/NOTES-Table 1.csv
... ... @@ -0,0 +1,39 @@
  1 +Notes
  2 +"* Countries or areas listed individually are only those with 100,000 inhabitants or more in 2010; the rest are included in the regional groups but are not listed separately."
  3 +(a) More developed regions comprise Europe, Northern America, Australia/New Zealand and Japan.
  4 +(b) Less developed regions comprise all regions of Africa, Asia (excluding Japan), Latin America and the Caribbean plus Melanesia, Micronesia and Polynesia.
  5 +(c) The least developed countries are 48 countries, 33 in Africa, 9 in Asia, 5 in Oceania plus one in Latin America and the Caribbean.
  6 +(d) Other less developed countries comprise the less developed regions excluding the least developed countries.
  7 +(e) Sub-Saharan Africa refers to all of Africa except Northern Africa, with the Sudan included in sub-Saharan Africa.
  8 +(1) Including Seychelles.
  9 +(2) Including Agalega, Rodrigues, and Saint Brandon.
  10 +(3) Including Zanzibar.
  11 +(4) Including Southern Sudan which voted in favor of independence, but was not an official UN Member State as of May 2011.
  12 +(5) Including Saint Helena, Ascension, and Tristan da Cunha.
  13 +(6) For statistical purposes, the data for China do not include Hong Kong and Macao, Special Administrative Regions (SAR) of China.
  14 +(7) As of 1 July 1997, Hong Kong became a Special Administrative Region (SAR) of China.
  15 +(8) As of 20 December 1999, Macao became a Special Administrative Region (SAR) of China.
  16 +(9) The regions Southern Asia and Central Asia are combined into South-Central Asia.
  17 +(10) Including Sabah and Sarawak.
  18 +(11) Including Nagorno-Karabakh.
  19 +(12) Including Northern-Cyprus.
  20 +(13) Including Abkhazia and South Ossetia.
  21 +(14) Including East Jerusalem.
  22 +(15) Including Transnistria.
  23 +(16) Including Faeroe Islands, and Isle of Man.
  24 +(17) Refers to Guernsey, and Jersey.
  25 +(18) Including Åland Islands.
  26 +(19) Including Svalbard and Jan Mayen Islands.
  27 +(20) Including Andorra, Gibraltar, Holy See, and San Marino.
  28 +(21) Including Kosovo.
  29 +(22) Including Canary Islands, Ceuta and Melilla.
  30 +(23) The former Yugoslav Republic of Macedonia.
  31 +(24) Including Liechtenstein, and Monaco.
  32 +(25) Including Anguilla, Antigua and Barbuda, British Virgin Islands, Cayman Islands, Dominica, Montserrat, Saint Kitts and Nevis, and Turks and Caicos Islands.
  33 +(26) Including Saint-Barthélemy and Saint-Martin (French part).
  34 +(27) Refers to Curaçao, Sint Maarten (Dutch part), Bonaire, Saba and Sint Eustatius.
  35 +(28) Including Falkland Islands (Malvinas).
  36 +(29) Including Bermuda, Greenland, and Saint Pierre and Miquelon.
  37 +(30) Including Christmas Island, Cocos (Keeling) Islands, and Norfolk Island.
  38 +(31) Including Kiribati, Marshall Islands, Nauru, Northern Mariana Islands, and Palau.
  39 +(32) Including American Samoa, Cook Islands, Niue, Pitcairn, Tokelau, Tuvalu, and Wallis and Futuna Islands.
5 app.py
... ... @@ -1,4 +1,4 @@
1   -from flask import Flask, url_for
  1 +from flask import Flask, url_for, request
2 2 from flask import render_template, make_response
3 3 import pickle
4 4
@@ -8,6 +8,7 @@
8 8 @app.route('/<country>/<int:year>/')
9 9 @app.route('/<country>/<int:year>/<currentLetter>/')
10 10 def pyramid(country="WORLD",year="2010",currentLetter=None):
  11 + print request.headers
11 12 years = range(1950,2101,5)
12 13 alphabet = map(chr, range(65, 91))
13 14 f = open('2010/letters_to_countries_list_dict.pickle')
@@ -55,4 +56,4 @@ def page_not_found(e):
55 56 if __name__ == '__main__':
56 57 # Bind to PORT if defined, otherwise default to 5000.
57 58 port = int(os.environ.get('PORT', 5000))
58   - app.run(host='0.0.0.0', port=port)
  59 + app.run(host='0.0.0.0', port=port, debug=True)
3  templates/index.html
@@ -125,8 +125,7 @@ <h3 id="clickOnACountry">Click on a Country:</h3>
125 125 Visualization by <a href="http://multitasked.net">Martin De Wulf</a> (<a href="http://twitter.com/madewulf">@madewulf</a>) &mdash;
126 126 All code on <a href="https://github.com/madewulf/populationpyramid.net">github</a> &mdash;
127 127
128   - <a href="http://www.multitasked.net/2011/feb/5/about-population-pyramid-net/" id="blog_link">Learn more about
129   - this project</a>
  128 + <a href="http://madewulf.github.com/PopulationPyramid.net/" id="blog_link">Previous version of the site, with data from 2010.</a>
130 129 </div>
131 130 <p>United Nations, Department of Economic and Social Affairs, Population Division (2011). World Population Prospects: The 2010 Revision.</p>
132 131 </div>

0 comments on commit 3727bb3

Please sign in to comment.
Something went wrong with that request. Please try again.