diff --git a/508d1fcc-60e0-40e3-a30c-408d0ffa1de9_Data.csv b/508d1fcc-60e0-40e3-a30c-408d0ffa1de9_Data.csv new file mode 100644 index 0000000..132d70b --- /dev/null +++ b/508d1fcc-60e0-40e3-a30c-408d0ffa1de9_Data.csv @@ -0,0 +1,272 @@ +Series Name,Series Code,Country Name,Country Code,1990 [YR1990],2000 [YR2000],2014 [YR2014],2015 [YR2015],2016 [YR2016],2017 [YR2017],2018 [YR2018],2019 [YR2019],2020 [YR2020],2021 [YR2021],2022 [YR2022],2023 [YR2023] +Access to electricity (% of population),EG.ELC.ACCS.ZS,Afghanistan,AFG,..,4.4,89.5,71.5,97.7,97.7,93.4,97.7,97.7,97.7,85.3,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Albania,ALB,100,99.4,100,100,99.9,99.9,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Algeria,DZA,..,98.6,99.3,99.4,99.4,99.5,99.6,99.5,99.7,99.8,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,American Samoa,ASM,..,..,..,..,..,..,..,..,..,..,..,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Andorra,AND,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Angola,AGO,..,24.2,32,42,41.8,42.9,45.3,45.6,47,48.2,48.5,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Antigua and Barbuda,ATG,95.7630462646484,97.7,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Argentina,ARG,92.1548004150391,95.7,100,99.7,99.9,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Armenia,ARM,..,98.9,99.7,100,99.8,99.7,99.9,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Aruba,ABW,100,91.7,100,100,100,100,100,100,100,100,99.9,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Australia,AUS,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Austria,AUT,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Azerbaijan,AZE,..,98.9,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,"Bahamas, The",BHS,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Bahrain,BHR,99.9413986206055,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Bangladesh,BGD,..,32,62.4,74,75.9,88,86.9,92.2,96.2,99,99.4,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Barbados,BRB,99.9842529296875,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Belarus,BLR,100,89,96.8,97.4,98,98.7,99.3,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Belgium,BEL,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Belize,BLZ,..,79,91.5,91.8,93.3,94.2,91.7,92.7,96.8,97.7,98.6,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Benin,BEN,..,21.5,34.1,29.6,37,34.5,39,40,41,42,56.5,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Bermuda,BMU,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Bhutan,BTN,..,31.2,91.4,95.4,99.3,97.7,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Bolivia,BOL,..,70,90,91.5,91.8,91.8,92.8,95.1,97.2,98.6,99.9,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Bosnia and Herzegovina,BIH,100,99,99.9,99.7,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Botswana,BWA,..,26.5,60,62.1,64.2,67.4,68.3,70.1,71.8,73.7,75.9,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Brazil,BRA,87.475116,94.4,99.7,99.7,99.7,99.8,99.7,99.8,99.7,99.5,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,British Virgin Islands,VGB,94.606559753418,97.1,99.2,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Brunei Darussalam,BRN,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Bulgaria,BGR,100,88.1,95.9,96.6,97.3,98.1,98.7,99.2,99.7,99.8,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Burkina Faso,BFA,..,9.1,19.2,16.2,16.6,17,14.4,17.6,18.5,19,19.5,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Burundi,BDI,..,2.5,7,7.9,8.5,9.3,9.5,9.8,9.1,10.2,10.3,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Cabo Verde,CPV,..,58.6,85.3,86.4,87.5,88.6,90.2,91.4,93.7,95.5,97.1,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Cambodia,KHM,..,16.6,56.1,62.7,68.8,89.1,80.7,84,86.4,82.5,92.3,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Cameroon,CMR,..,41,56.8,58.6,59.8,60.9,62.2,63.2,64.3,65.4,71,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Canada,CAN,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Cayman Islands,CYM,99.846923828125,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Central African Republic,CAF,..,6,12,12.7,13.4,14.1,14.6,14.3,15.4,15.7,15.7,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Chad,TCD,..,3.1,8.4,7.7,9.2,10.9,10.1,8.4,10.9,11.3,11.7,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Channel Islands,CHI,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Chile,CHL,92.257427,97.9,100,99.7,100,99.7,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,China,CHN,..,96.7,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Colombia,COL,89.9,95.2,97.8,98.2,98.4,98.5,98.5,99.4,99.7,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Comoros,COM,..,39.8,71.8,74.1,76.4,78.7,81,83.3,85.6,87.9,89.9,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,"Congo, Dem. Rep.",COD,..,6.7,13.5,16.6,17.3,18,18.7,19.1,20.1,20.8,21.5,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,"Congo, Rep.",COG,..,29.4,43.4,44.3,45.3,46.2,47,47.7,48.7,49.7,50.6,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Costa Rica,CRI,..,96.9,99.4,99.4,99.5,99.6,99.7,99.7,99.9,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Cote d'Ivoire,CIV,..,48.7,61.9,62.6,64.3,65.6,67.1,68.6,69.9,71.1,70.4,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Croatia,HRV,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Cuba,CUB,..,97,98.7,99,99.2,99.4,99.6,99.8,99.9,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Curacao,CUW,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Cyprus,CYP,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Czechia,CZE,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Denmark,DNK,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Djibouti,DJI,..,56,58.9,59.1,59.8,60.2,62.4,64.7,64.5,65.4,65,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Dominica,DMA,..,81.1,95.7,96.7,97.8,98.9,99.6,99.9,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Dominican Republic,DOM,..,88.8,98.5,98.6,98.9,100,98.9,99,100,98.1,98.1,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Ecuador,ECU,..,93.7,99,98.8,98.7,99.2,98.7,99.1,98.9,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,"Egypt, Arab Rep.",EGY,..,97.7,99.8,99.3,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,El Salvador,SLV,..,84.5,95.1,95.4,96,96.8,97,97.4,99.7,97.9,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Equatorial Guinea,GNQ,..,64.8,66,66.1,66.2,66.4,66.5,66.6,66.7,66.8,67,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Eritrea,ERI,..,29.3,44.6,45.8,46.9,48,49.1,50.3,51.4,52.5,55.4,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Estonia,EST,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Eswatini,SWZ,..,20.4,65,64.1,63.4,73.5,74,77,80,82.9,82.3,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Ethiopia,ETH,..,12.7,27.2,29,42.9,44.3,44.8,48,51.1,54.2,55,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Faroe Islands,FRO,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Fiji,FJI,..,76.8,93,93.2,93.4,96,95.1,96.1,97.1,92.1,92,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Finland,FIN,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,France,FRA,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,French Polynesia,PYF,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Gabon,GAB,..,73.6,87.1,87.3,88.1,86.3,89.6,90.3,91.1,91.8,93.5,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,"Gambia, The",GMB,..,34.3,53,54.7,56.4,56.2,60.3,62.1,62.2,63.7,65.4,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Georgia,GEO,..,99.8,100,100,100,100,99.9,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Germany,DEU,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Ghana,GHA,..,43.7,78.3,74,79.3,79,80.4,83.5,85.4,86.3,85.1,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Gibraltar,GIB,100,99.9,99.9,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Greece,GRC,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Greenland,GRL,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Grenada,GRD,..,86,91,91.4,91.8,92.2,92.3,93,93.4,93.7,94.2,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Guam,GUM,99.8443069458008,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Guatemala,GTM,..,73.3,85.5,90.5,91.8,93.3,94.2,95.4,96.6,97.9,99.1,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Guinea,GIN,..,15.2,33.5,34.9,33.5,35.4,45,42.2,44.7,46.8,47.7,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Guinea-Bissau,GNB,..,..,17.2,20.1,22.9,26,28.4,30.9,33.4,35.8,37.4,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Guyana,GUY,..,74.6,86.9,88,89,90,90.9,91.6,92.3,92.9,93,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Haiti,HTI,..,33.7,39.6,40.8,40.4,43.3,44.4,45.4,46.3,47.2,49.3,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Honduras,HND,..,67.4,88.7,90,91.6,86.5,91.6,91.1,93.1,94.1,94.4,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,"Hong Kong SAR, China",HKG,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Hungary,HUN,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Iceland,ISL,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,India,IND,..,60.3,85.1,88,89.6,91.8,95.7,95.9,96.5,99.6,99.2,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Indonesia,IDN,..,86.3,97,97.5,97.6,98.1,98.5,98.9,97,99.2,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,"Iran, Islamic Rep.",IRN,..,97.9,100,100,100,99.9,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Iraq,IRQ,..,96.8,99.2,99.4,99.7,99.9,99.9,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Ireland,IRL,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Isle of Man,IMN,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Israel,ISR,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Italy,ITA,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Jamaica,JAM,70.334586,84.4,93.3,94.9,96.6,97.4,98.2,98.9,99.7,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Japan,JPN,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Jordan,JOR,96.8,99,99.8,99.9,100,100,99.9,99.9,99.9,99.9,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Kazakhstan,KAZ,..,99.6,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Kenya,KEN,..,15.2,36,41.6,53.1,55.8,61.2,69.7,71.5,76.5,76,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Kiribati,KIR,..,55.6,83.4,90.6,92.6,85.7,87.5,89.3,91,92.8,94.4,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,"Korea, Dem. People's Rep.",PRK,..,..,37.8,40,42.1,44.2,46.3,48.4,50.5,52.6,54.7,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,"Korea, Rep.",KOR,99.8828430175781,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Kosovo,XKX,100,..,..,..,..,..,..,..,..,..,..,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Kuwait,KWT,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Kyrgyz Republic,KGZ,..,99.6,99.8,98.7,99.7,100,100,99.9,99.9,99.7,99.7,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Lao PDR,LAO,..,42.6,82.5,89.7,89,93.6,92.9,98.4,99.3,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Latvia,LVA,100,99.9,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Lebanon,LBN,..,99.3,99.7,99.7,99.8,99.9,99.7,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Lesotho,LSO,..,4.3,27.8,31.8,35.1,33.7,47,44.6,47.5,50.4,50,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Liberia,LBR,..,..,9.4,15.2,17.7,24.2,22.8,23.1,27.6,29.8,31.8,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Libya,LBY,..,99.8,75.5,73.8,72.2,70.6,67,68.5,69.4,70.2,70,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Liechtenstein,LIE,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Lithuania,LTU,100,99.5,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Luxembourg,LUX,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,"Macao SAR, China",MAC,99.8492813110352,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Madagascar,MDG,..,12.6,23,23.8,22.9,24.1,36.5,31,32,35.1,36.1,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Malawi,MWI,..,4.8,11.9,10.8,11,12.7,18,11.2,11.5,14.2,14,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Malaysia,MYS,..,98.6,99.7,99.9,99.9,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Maldives,MDV,..,83.8,100,99.8,100,99.8,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Mali,MLI,..,9.6,34.2,37.6,38.8,34.8,50.9,47.9,50.6,53.4,53,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Malta,MLT,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Marshall Islands,MHL,..,68.6,91.5,92.1,92.7,93.8,95.3,96.8,98.3,99.8,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Mauritania,MRT,..,19.1,38.8,39.5,41.2,42.9,43.6,44.9,45.4,47.7,49,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Mauritius,MUS,99.0415649414063,99,99.5,99.6,99.7,99.6,99.8,100,99.5,99.6,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Mexico,MEX,..,98,99.2,99,99.5,100,99.5,99.6,99.4,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,"Micronesia, Fed. Sts.",FSM,..,46,71.2,73,74.8,76.5,78.3,80.1,81.9,83.6,85.3,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Moldova,MDA,100,98.7,99.8,99.9,99.9,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Monaco,MCO,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Mongolia,MNG,..,67.3,86,88,90.8,93.6,98.1,98.9,99.5,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Montenegro,MNE,100,99.1,97.7,99.5,99.6,100,100,100,99.9,99.8,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Morocco,MAR,..,69.8,97.3,97.3,97.8,100,98.1,99.6,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Mozambique,MOZ,..,6.1,24.8,24,26.2,24.3,31.1,29.7,30.6,31.5,33.2,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Myanmar,MMR,..,41.9,52,60.5,55.6,69.8,66.1,68.3,70.4,72.5,73.7,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Namibia,NAM,..,36.5,48.4,51.6,49.7,52.5,52.3,53.3,52.3,55.2,56.2,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Nauru,NRU,98.9990844726563,99.1,99.5,99,99.7,99.8,99.9,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Nepal,NPL,..,29.9,84.9,82,90.7,86.6,93.9,89.9,89.9,89.9,91.3,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Netherlands,NLD,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,New Caledonia,NCL,99.8443069458008,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,New Zealand,NZL,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Nicaragua,NIC,..,73,81.9,83.2,83.9,84.6,85.2,85.7,86,86.3,86.5,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Niger,NER,..,6.5,15.7,16.6,17,17.6,17.6,18.5,18.7,18.6,19.5,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Nigeria,NGA,27.3,43.2,54.2,52.5,59.3,54.4,56.5,55.4,55.4,59.5,60.5,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,North Macedonia,MKD,100,99,99.8,99.9,100,100,99.8,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Northern Mariana Islands,MNP,99.8532638549805,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Norway,NOR,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Oman,OMN,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Pakistan,PAK,..,72.8,90.1,91,91.8,92.7,93.4,93.9,94.5,94.9,95,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Palau,PLW,96.6253509521484,97.9,99.8,99.5,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Panama,PAN,70.19,81.4,90.8,91.6,92.4,93.7,93.8,93.9,95.3,95.3,95,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Papua New Guinea,PNG,..,12.4,18.1,18.4,13.5,19.2,16.6,23.6,20.5,20.9,19,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Paraguay,PRY,..,89.6,99,99.3,98.4,99.3,99.6,99.7,99.7,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Peru,PER,..,72.5,92.9,93.9,94.2,94.8,95.2,95.6,96.2,95.6,96.2,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Philippines,PHL,..,74.7,89.8,89.1,92,93,94.2,95.3,96.4,97.5,94.8,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Poland,POL,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Portugal,PRT,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Puerto Rico,PRI,99.9834289550781,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Qatar,QAT,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Romania,ROU,100,94.4,98.4,98.8,99.1,100,99.8,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Russian Federation,RUS,100,97.8,100,95.5,99.4,100,100,99.8,99.9,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Rwanda,RWA,..,6.2,19.8,22.8,29.4,34.1,38,46.6,45.2,48.7,50.6,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Samoa,WSM,..,88,97.9,98.2,98.9,96.8,99.8,99.2,100,98.3,98.3,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,San Marino,SMR,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Sao Tome and Principe,STP,..,52.9,68.6,67.3,69.4,74.3,71,75.1,76.8,78.5,78,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Saudi Arabia,SAU,100,100,100,100,99.9,100,99.9,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Senegal,SEN,..,37.7,61,60.5,64.5,61.7,66,70.4,64.3,68,67.9,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Serbia,SRB,100,99.9,99.7,99.9,99.9,100,100,99.8,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Seychelles,SYC,..,94.1,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Sierra Leone,SLE,..,7.7,18.8,19.7,20.3,23.4,26.1,22.7,26.3,27.5,29.4,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Singapore,SGP,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Sint Maarten (Dutch part),SXM,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Slovak Republic,SVK,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Slovenia,SVN,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Solomon Islands,SLB,..,4.7,50.5,55.1,58.2,62.9,65.8,69.4,72.9,76.3,76,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Somalia,SOM,..,2.1,51.4,51.2,51.1,52.1,50.7,49.2,49.9,49.3,48.9,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,South Africa,ZAF,..,72.4,85.9,85.3,83.9,84.4,84.7,85,90,89.3,86.5,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,South Sudan,SSD,..,..,4.3,4.8,5.3,4.2,6.3,6.8,7.3,7.7,8.4,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Spain,ESP,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Sri Lanka,LKA,..,70.3,92.7,94.3,97.5,97.5,99.6,99.8,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,St. Kitts and Nevis,KNA,91.3068161010742,95.4,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,St. Lucia,LCA,..,86,98.1,99,99.8,99.9,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,St. Martin (French part),MAF,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,St. Vincent and the Grenadines,VCT,..,80,98.1,99.4,99.7,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Sudan,SDN,32.8,23,44.9,48,50.5,53,55.3,57.6,59.7,61.8,63.2,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Suriname,SUR,..,95.4,94.6,95,95.8,96.6,97.4,97.9,98.4,98.8,99,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Sweden,SWE,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Switzerland,CHE,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Syrian Arab Republic,SYR,..,93.4,90.2,90,89.8,89.6,86,89.2,89,88.8,89,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Tajikistan,TJK,..,98.5,99.1,98,99.3,99.3,99.3,99.4,99.5,99.6,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Tanzania,TZA,..,8.7,23.5,26.2,32.8,32.1,34.9,37.7,39.9,42.7,45.8,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Thailand,THA,..,82.1,99.5,99.6,99.9,99.9,99.8,99.9,100,100,99.9,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Timor-Leste,TLS,..,17.8,62.4,67.3,76.5,79.5,85.2,90.6,96,100,99.7,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Togo,TGO,..,17,45.7,44.7,46.8,48,50,52.5,54.1,55.7,57.2,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Tonga,TON,..,85.6,95.9,100,97,98.2,99,98.4,99.9,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Trinidad and Tobago,TTO,..,91.3,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Tunisia,TUN,..,94.8,99.8,99.9,100,100,99.8,100,99.9,99.9,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Turkiye,TUR,..,99.9,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Turkmenistan,TKM,..,99.6,100,100,100,100,100,99.9,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Turks and Caicos Islands,TCA,88.7,95.6,100,100,100,100,100,100,99.4,100,99.9,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Tuvalu,TUV,..,94.6,97.9,98.1,97.3,98.7,99,99.7,99.4,99.7,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Uganda,UGA,..,7.4,20.4,18.5,26.7,32.4,41.9,41.3,42.1,45.2,47.1,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Ukraine,UKR,100,99.1,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,United Arab Emirates,ARE,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,United Kingdom,GBR,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,United States,USA,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Uruguay,URY,..,97.6,99.7,99.7,99.7,99.8,99.8,99.9,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Uzbekistan,UZB,..,99.6,99.8,99.9,99.9,100,100,100,100,99.9,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Vanuatu,VUT,..,22.2,49.1,52.3,57.8,62.8,61.6,64.5,67.3,70,70,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,"Venezuela, RB",VEN,..,98.9,100,100,99.4,99.2,99.9,99.8,99.9,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Viet Nam,VNM,..,88.2,99.2,99.3,99.2,100,100,99.4,99.8,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Virgin Islands (U.S.),VIR,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,West Bank and Gaza,PSE,..,99.7,99.9,99.9,100,99.9,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,"Yemen, Rep.",YEM,..,49.2,66.1,67.4,68.9,79.2,62,72.8,73.9,74.9,76,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Zambia,ZMB,13.9,16.7,27.9,31.1,35.4,40.3,40.2,43,44.6,46.7,47.8,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Zimbabwe,ZWE,..,33.7,32.3,33.7,42.5,44,45.4,46.7,52.7,49,50.1,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Africa Eastern and Southern,AFE,..,19.9172563342889,31.8719561283579,33.9222756622758,38.8595976583714,40.2237441730368,43.0350733507835,44.3908605333639,46.2823709455637,48.1272110400485,48.7420429375177,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Africa Western and Central,AFW,..,34.2461158257192,47.7673605462369,46.8624182524845,51.0451271925992,48.9007280475057,51.3358293517534,51.2915769115352,51.8560428463068,54.368598708444,55.5889080239262,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Arab World,ARB,..,80.4586672566828,88.4067767085653,88.6616431398725,89.1861710572826,90.3510669396465,88.6898406472267,89.9289963083413,90.2417769685806,90.4340947732985,90.6545179070033,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Caribbean small states,CSS,..,86.972201725423,93.9418563764555,94.4702470953178,95.154589317,95.7264156554545,95.7894023713574,96.2029425987505,97.0200386603147,97.37247591198,97.5677686607558,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Central Europe and the Baltics,CEB,100,97.9262635329594,99.4058295396064,99.5331288361926,99.6407431190222,99.8690366431484,99.8728287723092,99.9454393536876,99.9796151613012,99.9863330202674,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Early-demographic dividend,EAR,..,67.5004886155748,84.7520088398511,86.8271544642577,88.3494481253503,90.5086728796454,91.9927109222765,92.7976553013368,93.4557810564296,95.2423338887017,95.1445282423272,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,East Asia & Pacific,EAS,..,92.0618144338662,96.6375595761929,96.9500599621312,97.0343965831866,97.6915359289014,97.66096406877,97.8752558067352,97.7976209735392,98.1534259112018,98.2159982994005,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,East Asia & Pacific (excluding high income),EAP,..,91.1381444668449,96.2740993565598,96.6218250728069,96.7165341917277,97.4453072983769,97.4123829747175,97.650096061791,97.5651849682476,97.9599209910295,98.029656910797,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,East Asia & Pacific (IDA & IBRD countries),TEA,..,91.1382617877496,97.0127423122849,97.3350470103173,97.4026392373466,98.1121893727336,98.051229750632,98.2647901194399,98.1521712499121,98.5259377999818,98.5710601814202,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Euro area,EMU,100,99.9939024363854,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Europe & Central Asia,ECS,100,99.1153070764394,99.8755636841761,99.1679100110301,99.8284656815398,99.9636038145672,99.9703717538447,99.9531849754131,99.9759404277031,99.9881230235836,99.9977343798245,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Europe & Central Asia (excluding high income),ECA,..,99.0003702731227,99.7848945265582,99.7678073744321,99.8659898032207,99.918274369311,99.9421311226644,99.9658134904983,99.9774599030025,99.9616995610703,99.9915983455152,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Europe & Central Asia (IDA & IBRD countries),TEC,100,98.2547275886878,99.7503754982331,98.3316951600505,99.6562921393591,99.9271264720373,99.9407109333352,99.9064255396847,99.951930176469,99.976264552949,99.9954476985528,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,European Union,EUU,100,99.4761898580312,99.8614202371315,99.8916120446069,99.9169961289413,99.9698678441673,99.9708530544371,99.9875238797463,99.9953530928518,99.9969197066502,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Fragile and conflict affected situations,FCS,..,40.4330868376339,49.9837325368256,50.043223771186,54.1757718946072,54.5377495544254,54.5154686576955,55.4514164250793,56.3010490504136,57.8332255929662,57.9092443338508,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Heavily indebted poor countries (HIPC),HPC,..,17.8244786052089,35.3432938741151,35.4532334232963,40.5879143859095,41.4761400082642,43.9780559155511,45.0224569328403,46.3405988685198,48.0199412207435,48.6142457774215,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,High income,HIC,99.8410486296657,99.4497830848627,99.9185819134888,99.4407646717017,99.8757771443115,99.9606280829871,99.9632829756948,99.9502644039059,99.9684987503445,99.9797671921069,99.9797265292838,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,IBRD only,IBD,..,84.5514200391953,94.4240569012039,95.1770160752339,95.8366022105112,96.6042977920987,97.7500255167055,97.8774207489601,98.0574759761591,99.1095265515065,98.9687616451153,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,IDA & IBRD total,IBT,..,73.965437248355,83.9400935968081,84.8028126891629,86.1987738636858,87.1789503061183,88.2039407170729,88.5728511945707,88.9134017004363,90.0209807963201,89.9492953913669,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,IDA blend,IDB,..,55.9747965800251,68.7785001653439,69.0750214788079,72.9339435546378,71.9335816766242,73.4411965480761,74.164401985469,74.7147008297106,76.7309985115853,77.3201892139766,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,IDA only,IDX,..,26.4529628352956,44.9228294072203,47.0844034555727,50.9871453949363,54.418522695952,55.2355387764411,57.0226242376975,58.5201983099648,60.0180074994697,60.5063653924991,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,IDA total,IDA,..,36.3628571304632,53.0005784435733,54.5223994355961,58.3948760922488,60.317735441149,61.3544488257822,62.769644320149,63.937074349311,65.598211852635,66.1102001807559,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Late-demographic dividend,LTE,..,95.2513038876331,99.004369512067,98.7802682273306,99.1163818697247,99.2721463558098,99.2807159130097,99.3290150630574,99.3870267538901,99.4116791707221,99.4771761425239,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Latin America & Caribbean,LCN,..,91.7360864277566,97.0537843593473,97.2844558417206,97.478084382916,97.7102884901766,97.7563717142321,97.9978709207859,98.149992664729,98.2756263192893,98.5788713134359,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Latin America & Caribbean (excluding high income),LAC,..,91.1244186310579,96.8048219061742,97.0648999829523,97.2976358615908,97.5672245034454,97.5735934747518,97.8483423586696,98.0023036048867,98.1372854860676,98.4758275506394,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Latin America & the Caribbean (IDA & IBRD countries),TLA,..,91.5465023715452,97.0005516962811,97.2323920529293,97.4280893456675,97.6633402843346,97.7078847938323,97.9522021469941,98.106453253093,98.2338083621938,98.5448799242171,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Least developed countries: UN classification,LDC,..,20.2280542447191,39.4878234772477,42.3127281274977,46.3458332429442,50.2044940868735,51.0874202600401,52.8787122662405,54.4736840146264,56.1055373553461,56.7048565352677,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Low & middle income,LMY,..,72.7351235093266,83.0698912018643,84.0897726807869,85.4623613181934,86.4795383753435,87.5559284637152,87.9593214410172,88.3242558528176,89.4849996139745,89.4252588465316,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Low income,LIC,..,15.8877973903425,32.3736906994259,32.3563050420321,37.5688615041151,39.2540028276042,40.5813805091217,41.9805026314343,43.3753224609455,44.9719731908846,45.1134101816937,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Lower middle income,LMC,..,58.2023063073725,78.3178649583009,80.6860083416177,82.7474752558161,84.6891101044614,86.9445947515282,87.646093116922,88.4153576073276,90.59021272637,90.5967778011066,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Middle East & North Africa,MEA,..,92.2207810132128,96.3176033479278,96.3054947359157,96.5989199415872,97.4720423781026,95.8581028917348,96.9003001428563,97.0041871604189,97.055627851031,97.1470983807294,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Middle East & North Africa (excluding high income),MNA,..,91.3598538510126,95.7698522810015,95.7393323183147,96.074609318512,97.0772775378789,95.232006361719,96.4319693484154,96.5469122817479,96.6183164116232,96.7125182473811,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Middle East & North Africa (IDA & IBRD countries),TMN,..,91.2743556020903,95.7236824341831,95.6925736167133,96.0302711480098,97.0453093642145,95.177571007895,96.3909098617689,96.5068160963285,96.5786857276607,96.6737042403046,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Middle income,MIC,..,77.2414328932125,88.5006267567693,89.7046508244754,90.7371682099732,91.763100053934,92.9012158116116,93.2870406287206,93.6302296407633,94.8381761414164,94.8551931473528,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,North America,NAC,100,100,100,100,100,100,100,100,100,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Not classified,INX,..,..,..,..,..,..,..,..,..,..,..,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,OECD members,OED,99.5478013270206,99.6355291285159,99.8479831741066,99.8392991764122,99.8958825445075,99.9408234681433,99.898682986239,99.9400000115376,99.9330139167875,100,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Other small states,OSS,..,72.8855619318193,87.015672761636,87.8685604856627,89.1552354117564,90.5135896549814,91.5203231214311,92.6845885659622,93.5951014092024,94.5120438097607,94.605657736354,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Pacific island small states,PSS,..,55.2875180803359,76.5754031125716,78.5477895035505,79.9083422592839,82.1041734677982,82.69782730903,84.3434350882329,86.1939811336602,85.6708178235478,85.6038100577211,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Post-demographic dividend,PST,99.994396586414,99.7150166440245,99.9314778240166,99.9441193264672,99.9571918082299,99.9706412716672,99.9817826900216,99.992976997827,99.997139077653,99.9987685497934,100,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Pre-demographic dividend,PRE,..,24.8722822039397,39.8940402562397,40.1196686715573,44.6718700054727,44.3587801999364,47.1055374833379,47.5891649924098,48.3865766205334,50.5171178994713,51.1035426781824,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Small states,SST,..,72.9649264006493,86.7508912925785,87.6941080364298,88.8889840355325,90.2284572279253,91.0307233970485,92.1388584397884,93.1547885689259,93.7884062817589,93.8741763871044,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,South Asia,SAS,..,57.7784468456698,83.8508981640834,86.7911530662782,88.9217628798745,91.6798198055988,94.6172397340512,95.3216030944791,96.1923608258184,98.7753119350619,98.2841562590132,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,South Asia (IDA & IBRD),TSA,..,57.7784468456697,83.8508981640834,86.7911530662782,88.9217628798745,91.6798198055988,94.6172397340512,95.3216030944791,96.1923608258184,98.775311935062,98.2841562590132,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Sub-Saharan Africa,SSF,..,25.700773726639,38.3544769303453,39.1996500160838,43.8301651403807,43.7628194566177,46.4166752425457,47.1974168154517,48.5450389491045,50.6566448640617,51.512559668342,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Sub-Saharan Africa (excluding high income),SSA,..,25.6925016730781,38.348833033686,39.1941094949299,43.8251135182673,43.7578326767506,46.4120038049762,47.1928919113376,48.5407047162867,50.6525597268546,51.5078304918426,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Sub-Saharan Africa (IDA & IBRD countries),TSS,..,25.700773726639,38.3544769303453,39.1996500160838,43.8301651403807,43.7628194566177,46.4166752425457,47.1974168154518,48.5450389491045,50.6566448640617,51.512559668342,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,Upper middle income,UMC,..,94.3273600863386,98.8783432928367,98.9597889342189,98.99324246416,99.1210835166054,99.1384189571732,99.2355189253177,99.1739709844954,99.3931573305582,99.4658003895695,.. +Access to electricity (% of population),EG.ELC.ACCS.ZS,World,WLD,..,78.2214009100849,86.1952045782154,86.923548113864,88.1038273506242,88.9310968401293,89.7963518726606,90.1069300693474,90.3973782618433,91.3349919924229,91.277853325244,.. +,,,,,,,,,,,,,,, +,,,,,,,,,,,,,,, +,,,,,,,,,,,,,,, +Data from database: World Development Indicators,,,,,,,,,,,,,,, +Last Updated: 01/28/2025,,,,,,,,,,,,,,, diff --git a/lab7_new.py b/lab7_new.py new file mode 100644 index 0000000..039c6f4 --- /dev/null +++ b/lab7_new.py @@ -0,0 +1,108 @@ +# $pip install Flask +from flask import Flask, jsonify, request, render_template, redirect +import pandas as pd +import duckdb + +app = Flask(__name__) + +with duckdb.connect("nypd_date.db") as con: + df = con.table("felony").to_df() + print(df) + +@app.route("/register", methods=["GET", "POST"]) +def register_user(): + if request.method == "POST": + username = request.form['username'] + age = request.form['age'] + country = request.form['country'] + + with get_db() as con: + con.execute("INSERT INTO users (username, age, country) VALUES (?, ?, ?)", + (username, int(age), country)) + + return redirect("/user_stats") + + return ''' +

Register User

+
+ Username:

+ Age:

+ Country:

+ +
+ ''' + +@app.route("/user_stats", methods=["GET"]) +def user_stats(): + with duckdb.connect("nypd_date.db") as con: + total_users = con.execute("SELECT COUNT(*) FROM users").fetchone()[0] + avg_age = con.execute("SELECT AVG(age) FROM users").fetchone()[0] + countries = con.execute(""" + SELECT country, COUNT(*) AS count + FROM users + GROUP BY country + ORDER BY count DESC + LIMIT 3 + """).fetchall() + + return jsonify({ + "Total Users": total_users, + "Average Age": round(avg_age,0), + "Top Countries": [{"Country": row[0], "Number": row[1]} for row in countries] + }) + +@app.route("/") +def hello_world(): + """Return a friendly HTTP greeting.""" + + return "

Hello, World!

" + +@app.route("/sum", methods=["GET"]) +def sum(): + """Return the sum of two numbers.""" + a = request.args.get("a") + b = request.args.get("b") + + return jsonify({"sum": int(a) + int(b)}) + +def factorial(n): + if n == 0: + return 1 + else: + return n * factorial(n-1) + +@app.route("/factorial", methods=["GET"]) +def factorial_route(): + """Return the factorial of a number.""" + + n = request.args.get("n",10) + r = factorial(int(n)) + response = f'{n}! equals {r}' + return response + +@app.route("/whole_data", methods=["GET"]) +def whole_data(): + """Return the whole dataset.""" + df = pd.read_csv('NYPD_Hate_Crimes_20250131.csv') + df = df.to_csv() + return jsonify(df) + +@app.route("/year_data", methods=["GET"]) +def year_data(): + df = pd.read_csv('NYPD_Hate_Crimes_20250131.csv') + return jsonify(df["Complaint Year Number"].tolist()) + +@app.route("/alexa_mean_function", methods=["GET"]) +def alexa_mean_function(): + df = pd.read_csv('NYPD_Hate_Crimes_20250131.csv') + df["Month Number"] = df["Month Number"].astype(float) + return calc_mean(df) + +def calc_mean(df): + mean = df["Month Number"].mean() + return mean.astype(str) + +if __name__ == "__main__": + app.run(debug=True) + +#disclaimer: used ChatGPT to figure out how to receive user information on website (via HTML) \ No newline at end of file diff --git a/lab7_v2.py b/lab7_v2.py new file mode 100644 index 0000000..eca5282 --- /dev/null +++ b/lab7_v2.py @@ -0,0 +1,44 @@ +from flask import Flask, jsonify, request +import duckdb + +app = Flask(__name__) + +# Database helper function +def get_db(): + return duckdb.connect('nypd_date.db') + +# POST method to register a new user +@app.route("/register", methods=["POST"]) +def register_user(): + username = request.json.get('username') + age = request.json.get('age') + country = request.json.get('country') + + with get_db() as con: + con.execute("INSERT INTO users (username, age, country) VALUES (?, ?, ?)", + (username, age, country)) + + return jsonify({"message": "User added successfully"}), 201 + +# GET method to fetch user statistics +@app.route("/user_stats", methods=["GET"]) +def user_stats(): + with get_db() as con: + total_users = con.execute("SELECT COUNT(*) FROM users").fetchone()[0] + avg_age = con.execute("SELECT AVG(age) FROM users").fetchone()[0] + top_countries = con.execute(""" + SELECT country, COUNT(*) AS count + FROM users + GROUP BY country + ORDER BY count DESC + LIMIT 3 + """).fetchall() + + return jsonify({ + "total_users": total_users, + "avg_age": avg_age, + "top_countries": [{"country": row[0], "count": row[1]} for row in top_countries] + }) + +if __name__ == "__main__": + app.run(debug=True) diff --git a/make_database.sql b/make_database.sql new file mode 100644 index 0000000..d58f0fb --- /dev/null +++ b/make_database.sql @@ -0,0 +1,25 @@ +ATTACH DATABASE 'nypd_date.db' AS mydb2; + +CREATE TABLE mydb2.felony AS SELECT * FROM read_csv('NYPD_Hate_Crimes_20250131.csv'); + +SELECT* FROM mydb2.felony; + +CREATE TABLE mydb2.users ( + username TEXT, + age INTEGER, + country TEXT +); + +INSERT INTO mydb2.users (username, age, country) VALUES + ('Alexa', 23, 'USA'), + ('Ijaz', 28, 'Bangladesh'), + ('Ana', 15, 'Italy'), + ('Sarah', 35, 'Canada'), + ('James', 21, 'USA'), + ('Jack', 29, 'USA'), + ('Owen', 45, 'USA'), + ('Madison', 33, 'Canada'), + ('Ryan', 23, 'Bangladesh'), + ('Jean', 13, 'Canada'); + +SELECT* FROM mydb2.users; \ No newline at end of file diff --git a/nypd_date.db b/nypd_date.db new file mode 100644 index 0000000..f0ce40a Binary files /dev/null and b/nypd_date.db differ diff --git a/lab4.py b/old_lab4.py similarity index 99% rename from lab4.py rename to old_lab4.py index dbc361a..1fcdaeb 100644 --- a/lab4.py +++ b/old_lab4.py @@ -2,7 +2,7 @@ from flask import Flask, jsonify, request import pandas as pd import csv - +#import duckdb #print(df) app = Flask(__name__) diff --git a/requirements.txt b/requirements.txt index f80101b..b7031da 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,4 +5,5 @@ flask requests json csv -ydata-profiling \ No newline at end of file +ydata-profiling +duckdb \ No newline at end of file diff --git a/world_bank.db b/world_bank.db new file mode 100644 index 0000000..7fcda87 Binary files /dev/null and b/world_bank.db differ diff --git a/world_bank.db.wal b/world_bank.db.wal new file mode 100644 index 0000000..a101768 Binary files /dev/null and b/world_bank.db.wal differ