diff --git a/app.py b/app.py index 4d05de1..ba3ca9c 100644 --- a/app.py +++ b/app.py @@ -5,7 +5,7 @@ # Custom imports from multipage import MultiPage -from pages import data_upload, machine_learning, metadata, data_visualize, redundant, inference # import your pages here +from pages import data_upload, machine_learning, metadata, data_visualize, redundant # import your pages here # Create an instance of the app app = MultiPage() diff --git a/data/main_data.csv b/data/main_data.csv index ba30c88..087b9a4 100644 --- a/data/main_data.csv +++ b/data/main_data.csv @@ -1,159 +1,402 @@ -Country,Region,Happiness Rank,Happiness Score,Standard Error,Economy (GDP per Capita),Family,Health (Life Expectancy),Freedom,Trust (Government Corruption),Generosity,Dystopia Residual -Switzerland,Western Europe,1,7.587000000000001,0.03411,1.3965100000000001,1.34951,0.9414299999999999,0.66557,0.41978000000000004,0.29678000000000004,2.5173799999999997 -Iceland,Western Europe,2,7.561,0.048839999999999995,1.3023200000000001,1.4022299999999999,0.94784,0.6287699999999999,0.14145,0.4363,2.70201 -Denmark,Western Europe,3,7.527,0.033280000000000004,1.32548,1.36058,0.87464,0.6493800000000001,0.48357,0.34139,2.4920400000000003 -Norway,Western Europe,4,7.522,0.0388,1.459,1.33095,0.88521,0.66973,0.36503,0.34699,2.4653099999999997 -Canada,North America,5,7.4270000000000005,0.03553,1.32629,1.32261,0.9056299999999999,0.63297,0.32957,0.45811,2.4517599999999997 -Finland,Western Europe,6,7.406000000000001,0.0314,1.29025,1.31826,0.8891100000000001,0.64169,0.41372,0.23351,2.61955 -Netherlands,Western Europe,7,7.377999999999999,0.027989999999999998,1.32944,1.28017,0.89284,0.6157600000000001,0.31814000000000003,0.4761,2.4657 -Sweden,Western Europe,8,7.364,0.03157,1.33171,1.2890700000000002,0.9108700000000001,0.6598,0.43843999999999994,0.36262,2.3711900000000004 -New Zealand,Australia and New Zealand,9,7.2860000000000005,0.033710000000000004,1.2501799999999998,1.3196700000000001,0.9083700000000001,0.6393800000000001,0.42922,0.47501000000000004,2.26425 -Australia,Australia and New Zealand,10,7.284,0.04083,1.33358,1.30923,0.93156,0.6512399999999999,0.35636999999999996,0.43562,2.26646 -Israel,Middle East and Northern Africa,11,7.278,0.0347,1.2285700000000002,1.22393,0.9138700000000001,0.41318999999999995,0.07785,0.33171999999999996,3.08854 -Costa Rica,Latin America and Caribbean,12,7.226,0.044539999999999996,0.95578,1.2378799999999999,0.8602700000000001,0.63376,0.10583,0.25497,3.17728 -Austria,Western Europe,13,7.2,0.03751,1.33723,1.29704,0.8904200000000001,0.62433,0.18675999999999998,0.33088,2.5332 -Mexico,Latin America and Caribbean,14,7.187,0.041760000000000005,1.02054,0.91451,0.8144399999999999,0.48181,0.21311999999999998,0.14074,3.6021400000000003 -United States,North America,15,7.119,0.03839,1.3945100000000001,1.24711,0.86179,0.54604,0.1589,0.40105,2.51011 -Brazil,Latin America and Caribbean,16,6.983,0.040760000000000005,0.98124,1.2328700000000001,0.69702,0.49049,0.17521,0.14574,3.26001 -Luxembourg,Western Europe,17,6.946000000000001,0.03499,1.5639100000000001,1.21963,0.91894,0.61583,0.37798000000000004,0.28034000000000003,1.9696099999999999 -Ireland,Western Europe,18,6.94,0.03676,1.33596,1.36948,0.89533,0.6177699999999999,0.28703,0.45901000000000003,1.9757 -Belgium,Western Europe,19,6.937,0.03595,1.30782,1.28566,0.8966700000000001,0.5845,0.2254,0.2225,2.4148400000000003 -United Arab Emirates,Middle East and Northern Africa,20,6.901,0.03729,1.42727,1.12575,0.80925,0.64157,0.38583,0.26428,2.24743 -United Kingdom,Western Europe,21,6.867000000000001,0.01866,1.26637,1.28548,0.90943,0.59625,0.32066999999999996,0.51912,1.9699400000000002 -Oman,Middle East and Northern Africa,22,6.853,0.05335,1.36011,1.08182,0.76276,0.63274,0.32524000000000003,0.21541999999999997,2.4748900000000003 -Venezuela,Latin America and Caribbean,23,6.81,0.06476,1.04424,1.25596,0.7205199999999999,0.42908,0.11069000000000001,0.058410000000000004,3.1913099999999996 -Singapore,Southeastern Asia,24,6.797999999999999,0.0378,1.52186,1.02,1.02525,0.54252,0.4921,0.31105,1.8850099999999999 -Panama,Latin America and Caribbean,25,6.7860000000000005,0.0491,1.0635299999999999,1.1985,0.79661,0.5421,0.0927,0.24434,2.84848 -Germany,Western Europe,26,6.75,0.01848,1.32792,1.2993700000000001,0.89186,0.6147699999999999,0.21843,0.28214,2.1156900000000003 -Chile,Latin America and Caribbean,27,6.67,0.057999999999999996,1.10715,1.12447,0.85857,0.44132,0.12869,0.33363000000000004,2.67585 -Qatar,Middle East and Northern Africa,28,6.611000000000001,0.06257,1.69042,1.0786,0.79733,0.6404,0.52208,0.32573,1.55674 -France,Western Europe,29,6.575,0.03512,1.27778,1.2603799999999998,0.9457899999999999,0.55011,0.20646,0.12332,2.21126 -Argentina,Latin America and Caribbean,30,6.574,0.04612,1.05351,1.24823,0.78723,0.44974,0.08484,0.11450999999999999,2.8360000000000003 -Czech Republic,Central and Eastern Europe,31,6.505,0.04168,1.17898,1.20643,0.84483,0.46363999999999994,0.02652,0.10686,2.67782 -Uruguay,Latin America and Caribbean,32,6.485,0.04539,1.06166,1.2089,0.8116,0.6036199999999999,0.24558000000000002,0.2324,2.3214200000000003 -Colombia,Latin America and Caribbean,33,6.477,0.05051,0.91861,1.2401799999999998,0.69077,0.53466,0.0512,0.18400999999999998,2.85737 -Thailand,Southeastern Asia,34,6.455,0.03557,0.9669,1.26504,0.7385,0.5566399999999999,0.031869999999999996,0.5763,2.31945 -Saudi Arabia,Middle East and Northern Africa,35,6.4110000000000005,0.04633,1.39541,1.0839299999999998,0.72025,0.31048000000000003,0.32524000000000003,0.13706,2.43872 -Spain,Western Europe,36,6.329,0.03468,1.23011,1.31379,0.95562,0.45951000000000003,0.06398,0.18227000000000002,2.12367 -Malta,Western Europe,37,6.3020000000000005,0.04206,1.2074,1.30203,0.88721,0.60365,0.13585999999999998,0.51752,1.6488 -Taiwan,Eastern Asia,38,6.297999999999999,0.03868,1.29098,1.07617,0.8753,0.3974,0.08129,0.25376,2.32323 -Kuwait,Middle East and Northern Africa,39,6.295,0.04456,1.5542200000000002,1.16594,0.72492,0.55499,0.25609,0.16228,1.8763400000000001 -Suriname,Latin America and Caribbean,40,6.269,0.09811,0.99534,0.972,0.6082,0.5965699999999999,0.13633,0.16990999999999998,2.79094 -Trinidad and Tobago,Latin America and Caribbean,41,6.167999999999999,0.10895,1.21183,1.18354,0.61483,0.55884,0.0114,0.31844,2.2688200000000003 -El Salvador,Latin America and Caribbean,42,6.13,0.056179999999999994,0.76454,1.0250700000000001,0.67737,0.4035,0.11775999999999999,0.10692,3.035 -Guatemala,Latin America and Caribbean,43,6.122999999999999,0.052239999999999995,0.74553,1.04356,0.64425,0.57733,0.09472,0.27489,2.74255 -Uzbekistan,Central and Eastern Europe,44,6.002999999999999,0.04361,0.63244,1.34043,0.59772,0.6582100000000001,0.30826,0.22837,2.2374099999999997 -Slovakia,Central and Eastern Europe,45,5.995,0.04267,1.1689100000000001,1.26999,0.7890199999999999,0.31751,0.03431,0.16893,2.2463900000000003 -Japan,Eastern Asia,46,5.987,0.03581,1.27074,1.25712,0.99111,0.49615,0.1806,0.10705,1.68435 -South Korea,Eastern Asia,47,5.984,0.04098,1.24461,0.9577399999999999,0.9653799999999999,0.33208000000000004,0.07857,0.18557,2.21978 -Ecuador,Latin America and Caribbean,48,5.975,0.04528,0.8640200000000001,0.99903,0.79075,0.48573999999999995,0.1809,0.11540999999999998,2.5394200000000002 -Bahrain,Middle East and Northern Africa,49,5.96,0.05412,1.32376,1.21624,0.74716,0.45492,0.306,0.17362,1.73797 -Italy,Western Europe,50,5.9479999999999995,0.03914,1.25114,1.19777,0.9544600000000001,0.26236,0.02901,0.22823000000000002,2.0251799999999998 -Bolivia,Latin America and Caribbean,51,5.89,0.056420000000000005,0.68133,0.97841,0.5392,0.57414,0.08800000000000001,0.20536,2.82334 -Moldova,Central and Eastern Europe,52,5.888999999999999,0.037989999999999996,0.59448,1.01528,0.61826,0.32818,0.01615,0.20951,3.10712 -Paraguay,Latin America and Caribbean,53,5.877999999999999,0.045630000000000004,0.75985,1.30477,0.66098,0.53899,0.08242000000000001,0.3424,2.18896 -Kazakhstan,Central and Eastern Europe,54,5.855,0.041139999999999996,1.1225399999999999,1.1224100000000001,0.64368,0.51649,0.08454,0.11827,2.24729 -Slovenia,Central and Eastern Europe,55,5.848,0.04251,1.18498,1.27385,0.8733700000000001,0.60855,0.03787,0.25328,1.6158299999999999 -Lithuania,Central and Eastern Europe,56,5.832999999999999,0.03843,1.14723,1.25745,0.73128,0.21341999999999997,0.01031,0.026410000000000003,2.4464900000000003 -Nicaragua,Latin America and Caribbean,57,5.827999999999999,0.05371,0.59325,1.14184,0.7431399999999999,0.55475,0.19317,0.27815,2.32407 -Peru,Latin America and Caribbean,58,5.824,0.04615,0.9001899999999999,0.97459,0.73017,0.41496000000000005,0.05989,0.14982,2.5945 -Belarus,Central and Eastern Europe,59,5.813,0.03938,1.0319200000000002,1.23289,0.7360800000000001,0.37938,0.1909,0.11045999999999999,2.1309 -Poland,Central and Eastern Europe,60,5.791,0.04263,1.12555,1.27948,0.77903,0.53122,0.04212,0.16759000000000002,1.86565 -Malaysia,Southeastern Asia,61,5.77,0.0433,1.12486,1.07023,0.7239399999999999,0.5302399999999999,0.10500999999999999,0.33075,1.8854099999999998 -Croatia,Central and Eastern Europe,62,5.7589999999999995,0.04394,1.08254,0.79624,0.78805,0.25883,0.0243,0.054439999999999995,2.75414 -Libya,Middle East and Northern Africa,63,5.754,0.07832,1.13145,1.1186200000000002,0.7038,0.41668,0.11023,0.18295,2.0906599999999997 -Russia,Central and Eastern Europe,64,5.716,0.03135,1.13764,1.23617,0.6692600000000001,0.36679,0.03005,0.00199,2.27394 -Jamaica,Latin America and Caribbean,65,5.709,0.13693,0.81038,1.1510200000000002,0.6874100000000001,0.50442,0.02299,0.2123,2.32038 -North Cyprus,Western Europe,66,5.695,0.05635,1.2080600000000001,1.07008,0.92356,0.49027,0.1428,0.26169000000000003,1.5988799999999999 -Cyprus,Western Europe,67,5.689,0.0558,1.20813,0.89318,0.92356,0.40671999999999997,0.06146,0.30638000000000004,1.8893099999999998 -Algeria,Middle East and Northern Africa,68,5.605,0.05099,0.93929,1.07772,0.61766,0.28579,0.17382999999999998,0.07822,2.43209 -Kosovo,Central and Eastern Europe,69,5.5889999999999995,0.05018,0.80148,0.81198,0.63132,0.24749000000000002,0.04741,0.2831,2.76579 -Turkmenistan,Central and Eastern Europe,70,5.547999999999999,0.04175,0.95847,1.22668,0.53886,0.4761,0.30844,0.16979,1.8698400000000002 -Mauritius,Sub-Saharan Africa,71,5.477,0.07197,1.0076100000000001,0.98521,0.7095,0.56066,0.07521,0.37744,1.76145 -Hong Kong,Eastern Asia,72,5.474,0.05051,1.38604,1.05818,1.01328,0.59608,0.37124,0.39478,0.6542899999999999 -Estonia,Central and Eastern Europe,73,5.428999999999999,0.04013,1.15174,1.22791,0.77361,0.44888,0.15184,0.0868,1.58782 -Indonesia,Southeastern Asia,74,5.399,0.025960000000000004,0.8282700000000001,1.0870799999999998,0.63793,0.46611,0.0,0.51535,1.86399 -Vietnam,Southeastern Asia,75,5.36,0.03107,0.63216,0.9122600000000001,0.7467600000000001,0.59444,0.10440999999999999,0.1686,2.20173 -Turkey,Middle East and Northern Africa,76,5.332000000000001,0.03864,1.06098,0.94632,0.73172,0.22815,0.15746,0.12253,2.08528 -Kyrgyzstan,Central and Eastern Europe,77,5.2860000000000005,0.03823,0.47428000000000003,1.15115,0.65088,0.43477,0.042319999999999997,0.3003,2.2327 -Nigeria,Sub-Saharan Africa,78,5.268,0.04192,0.65435,0.9043200000000001,0.16007000000000002,0.34334000000000003,0.0403,0.27233,2.89319 -Bhutan,Southern Asia,79,5.252999999999999,0.03225,0.77042,1.10395,0.57407,0.5320600000000001,0.15445,0.47998,1.63794 -Azerbaijan,Central and Eastern Europe,80,5.212000000000001,0.03363,1.02389,0.9379299999999999,0.64045,0.3703,0.16065,0.07799,2.00073 -Pakistan,Southern Asia,81,5.194,0.03726,0.59543,0.41411000000000003,0.51466,0.12102,0.10464000000000001,0.33671,3.1070900000000004 -Jordan,Middle East and Northern Africa,82,5.192,0.045239999999999995,0.9019799999999999,1.05392,0.69639,0.40660999999999997,0.14293,0.11052999999999999,1.8799599999999999 -Montenegro,Central and Eastern Europe,82,5.192,0.05235,0.9743799999999999,0.9055700000000001,0.72521,0.1826,0.14296,0.1614,2.10017 -China,Eastern Asia,84,5.14,0.02424,0.89012,0.94675,0.81658,0.5169699999999999,0.02781,0.08185,1.8604 -Zambia,Sub-Saharan Africa,85,5.129,0.06988,0.47038,0.91612,0.29924,0.48827,0.12468,0.19591,2.6343 -Romania,Central and Eastern Europe,86,5.124,0.06607,1.04345,0.8858799999999999,0.7689,0.35068,0.006490000000000001,0.13748,1.9312900000000002 -Serbia,Central and Eastern Europe,87,5.122999999999999,0.048639999999999996,0.92053,1.0096399999999999,0.74836,0.20107,0.02617,0.19230999999999998,2.025 -Portugal,Western Europe,88,5.102,0.04802,1.15991,1.13935,0.8751899999999999,0.51469,0.01078,0.13719,1.26462 -Latvia,Central and Eastern Europe,89,5.098,0.0464,1.11312,1.09562,0.72437,0.29671,0.06332,0.18225999999999998,1.62215 -Philippines,Southeastern Asia,90,5.073,0.049339999999999995,0.70532,1.03516,0.58114,0.62545,0.12279000000000001,0.24991,1.7536 -Somaliland region,Sub-Saharan Africa,91,5.0569999999999995,0.061610000000000005,0.18847,0.95152,0.43873,0.46581999999999996,0.39928,0.5031800000000001,2.11032 -Morocco,Middle East and Northern Africa,92,5.013,0.0342,0.7347899999999999,0.64095,0.60954,0.41691000000000006,0.08546000000000001,0.07172,2.4537299999999997 -Macedonia,Central and Eastern Europe,93,5.007,0.05376,0.91851,1.00232,0.73545,0.33457,0.053270000000000005,0.22359,1.7393299999999998 -Mozambique,Sub-Saharan Africa,94,4.971,0.07896,0.08308,1.02626,0.09131,0.34037,0.15603,0.22269,3.05137 -Albania,Central and Eastern Europe,95,4.959,0.05013,0.8786700000000001,0.8043399999999999,0.81325,0.35733000000000004,0.06412999999999999,0.14272,1.89894 -Bosnia and Herzegovina,Central and Eastern Europe,96,4.949,0.06913,0.8322299999999999,0.9191600000000001,0.79081,0.09245,0.00227,0.24808000000000002,2.06367 -Lesotho,Sub-Saharan Africa,97,4.898,0.09437999999999999,0.37545,1.04103,0.07612000000000001,0.31767,0.12504,0.16388,2.79832 -Dominican Republic,Latin America and Caribbean,98,4.885,0.07446,0.8953700000000001,1.17202,0.66825,0.57672,0.14234000000000002,0.21684,1.21305 -Laos,Southeastern Asia,99,4.876,0.06698,0.5906600000000001,0.73803,0.54909,0.59591,0.24249,0.42191999999999996,1.7379900000000001 -Mongolia,Eastern Asia,100,4.874,0.03313,0.82819,1.3006,0.60268,0.43626000000000004,0.026660000000000003,0.3323,1.34759 -Swaziland,Sub-Saharan Africa,101,4.867,0.08742,0.71206,1.07284,0.07566,0.30658,0.0306,0.18259,2.48676 -Greece,Western Europe,102,4.857,0.05062,1.15406,0.9293299999999999,0.88213,0.07699,0.013969999999999998,0.0,1.8010099999999998 -Lebanon,Middle East and Northern Africa,103,4.8389999999999995,0.04337,1.0256399999999999,0.80001,0.83947,0.33916,0.04582,0.21854,1.57059 -Hungary,Central and Eastern Europe,104,4.8,0.061070000000000006,1.12094,1.20215,0.75905,0.32111999999999996,0.02758,0.128,1.24074 -Honduras,Latin America and Caribbean,105,4.788,0.056479999999999995,0.59532,0.9534799999999999,0.6951,0.40148,0.06825,0.23026999999999997,1.84408 -Tajikistan,Central and Eastern Europe,106,4.7860000000000005,0.03198,0.39047,0.8556299999999999,0.5737899999999999,0.47216,0.15072,0.22974,2.1139900000000003 -Tunisia,Middle East and Northern Africa,107,4.739,0.03589,0.88113,0.60429,0.73793,0.26268,0.06358,0.06431,2.12466 -Palestinian Territories,Middle East and Northern Africa,108,4.715,0.04394,0.59867,0.92558,0.66015,0.24499,0.12905,0.11250999999999999,2.0438400000000003 -Bangladesh,Southern Asia,109,4.694,0.03077,0.39753,0.43106000000000005,0.60164,0.4082,0.12569,0.21222,2.51767 -Iran,Middle East and Northern Africa,110,4.686,0.044489999999999995,1.0088,0.54447,0.69805,0.30033000000000004,0.058629999999999995,0.38086,1.6944 -Ukraine,Central and Eastern Europe,111,4.681,0.04412,0.79907,1.20278,0.6739,0.25123,0.02961,0.15275,1.5714 -Iraq,Middle East and Northern Africa,112,4.677,0.052320000000000005,0.98549,0.81889,0.60237,0.0,0.13788,0.17922000000000002,1.95335 -South Africa,Sub-Saharan Africa,113,4.6419999999999995,0.04585,0.9204899999999999,1.18468,0.27688,0.33207,0.08884,0.11972999999999999,1.7195599999999998 -Ghana,Sub-Saharan Africa,114,4.633,0.04742,0.5455800000000001,0.6795399999999999,0.40131999999999995,0.42341999999999996,0.04355,0.23087,2.30919 -Zimbabwe,Sub-Saharan Africa,115,4.61,0.0429,0.271,1.0327600000000001,0.33475,0.25861,0.08079,0.18987,2.44191 -Liberia,Sub-Saharan Africa,116,4.571000000000001,0.11068,0.0712,0.78968,0.34201,0.28531,0.06232000000000001,0.24361999999999998,2.7772900000000003 -India,Southern Asia,117,4.565,0.02043,0.64499,0.38174,0.5152899999999999,0.39786,0.08492000000000001,0.26475,2.27513 -Sudan,Sub-Saharan Africa,118,4.55,0.0674,0.52107,1.01404,0.36878,0.10081,0.1466,0.19062,2.20857 -Haiti,Latin America and Caribbean,119,4.518,0.07331,0.26673,0.74302,0.38847,0.24425,0.17175,0.46187,2.24173 -Congo (Kinshasa),Sub-Saharan Africa,120,4.5169999999999995,0.0368,0.0,1.0012,0.09806000000000001,0.22605,0.07625,0.24834,2.86712 -Nepal,Southern Asia,121,4.513999999999999,0.03607,0.35996999999999996,0.86449,0.5687399999999999,0.38282,0.059070000000000004,0.32295999999999997,1.9563700000000002 -Ethiopia,Sub-Saharan Africa,122,4.512,0.0378,0.19072999999999998,0.60406,0.44055,0.4345,0.15048,0.24325,2.44876 -Sierra Leone,Sub-Saharan Africa,123,4.507,0.07067999999999999,0.33024000000000003,0.9557100000000001,0.0,0.4084,0.08786000000000001,0.21488000000000002,2.51009 -Mauritania,Sub-Saharan Africa,124,4.436,0.03947,0.45407,0.86908,0.35874,0.24231999999999998,0.17461,0.21899999999999997,2.11773 -Kenya,Sub-Saharan Africa,125,4.419,0.04734,0.36471,0.99876,0.41435,0.42215,0.05839,0.37542,1.78555 -Djibouti,Sub-Saharan Africa,126,4.369,0.08096,0.44025,0.59207,0.36291,0.46074,0.28105,0.18093,2.05125 -Armenia,Central and Eastern Europe,127,4.35,0.04763,0.7682100000000001,0.7771100000000001,0.7299,0.19847,0.039,0.07855,1.75873 -Botswana,Sub-Saharan Africa,128,4.332,0.049339999999999995,0.99355,1.10464,0.047760000000000004,0.49495,0.12474,0.10461,1.46181 -Myanmar,Southeastern Asia,129,4.3069999999999995,0.04351,0.27108000000000004,0.70905,0.48246000000000006,0.44017,0.19034,0.79588,1.41805 -Georgia,Central and Eastern Europe,130,4.297,0.042210000000000004,0.7419,0.38561999999999996,0.72926,0.40576999999999996,0.38331,0.055470000000000005,1.59541 -Malawi,Sub-Saharan Africa,131,4.292,0.0613,0.016040000000000002,0.41134,0.22562,0.43054,0.06977,0.33128,2.8079099999999997 -Sri Lanka,Southern Asia,132,4.271,0.03751,0.83524,1.01905,0.70806,0.5372600000000001,0.09179,0.40828000000000003,0.67108 -Cameroon,Sub-Saharan Africa,133,4.252,0.04678,0.4225,0.8876700000000001,0.23401999999999998,0.49309,0.05786,0.20618000000000003,1.95071 -Bulgaria,Central and Eastern Europe,134,4.218,0.04828,1.01216,1.10614,0.76649,0.30587,0.00872,0.11921,0.89991 -Egypt,Middle East and Northern Africa,135,4.194,0.0326,0.8818,0.747,0.61712,0.17288,0.06324,0.11291,1.59927 -Yemen,Middle East and Northern Africa,136,4.077,0.04367,0.5464899999999999,0.68093,0.40064,0.35570999999999997,0.07854,0.09131,1.92313 -Angola,Sub-Saharan Africa,137,4.033,0.047580000000000004,0.75778,0.8604,0.16683,0.10384000000000002,0.07122,0.12344000000000001,1.9493900000000002 -Mali,Sub-Saharan Africa,138,3.995,0.05602000000000001,0.26074,1.03526,0.20583,0.38856999999999997,0.12352,0.18798,1.79293 -Congo (Brazzaville),Sub-Saharan Africa,139,3.989,0.06682,0.67866,0.6629,0.31051,0.41466000000000003,0.11685999999999999,0.12387999999999999,1.68135 -Comoros,Sub-Saharan Africa,140,3.9560000000000004,0.04797,0.23906,0.79273,0.36315,0.22916999999999998,0.19899999999999998,0.17440999999999998,1.95812 -Uganda,Sub-Saharan Africa,141,3.931,0.04317,0.21101999999999999,1.13299,0.33860999999999997,0.45726999999999995,0.07267,0.29066,1.42766 -Senegal,Sub-Saharan Africa,142,3.904,0.03608,0.36498,0.97619,0.4354,0.36772,0.10712999999999999,0.20843000000000003,1.44395 -Gabon,Sub-Saharan Africa,143,3.8960000000000004,0.04547,1.06024,0.90528,0.43372,0.31914000000000003,0.11091,0.06822,0.99895 -Niger,Sub-Saharan Africa,144,3.845,0.036019999999999996,0.0694,0.77265,0.29707,0.47691999999999996,0.15639,0.19387000000000001,1.87877 -Cambodia,Southeastern Asia,145,3.819,0.05069,0.46038,0.62736,0.61114,0.66246,0.07247,0.40359,0.98195 -Tanzania,Sub-Saharan Africa,146,3.781,0.05061,0.2852,1.00268,0.38215,0.32878,0.05747000000000001,0.34376999999999996,1.38079 -Madagascar,Sub-Saharan Africa,147,3.681,0.03633,0.20824,0.66801,0.46721,0.19184,0.08123999999999999,0.21333000000000002,1.851 -Central African Republic,Sub-Saharan Africa,148,3.678,0.06112000000000001,0.0785,0.0,0.06699,0.48878999999999995,0.08288999999999999,0.23835,2.7223 -Chad,Sub-Saharan Africa,149,3.667,0.0383,0.34193,0.76062,0.1501,0.23501,0.05269,0.18386,1.9429599999999998 -Guinea,Sub-Saharan Africa,150,3.656,0.0359,0.17417,0.46475,0.24009,0.37725,0.12139000000000001,0.28657,1.9917200000000002 -Ivory Coast,Sub-Saharan Africa,151,3.655,0.051410000000000004,0.46534,0.77115,0.15185,0.46866,0.17922000000000002,0.20165,1.41723 -Burkina Faso,Sub-Saharan Africa,152,3.5869999999999997,0.04324,0.25811999999999996,0.85188,0.27125,0.39493,0.12832000000000002,0.21746999999999997,1.46494 -Afghanistan,Southern Asia,153,3.575,0.03084,0.31982,0.30285,0.30335,0.23414000000000001,0.09719,0.3651,1.9521 -Rwanda,Sub-Saharan Africa,154,3.465,0.03464,0.22208000000000003,0.7737,0.42863999999999997,0.59201,0.55191,0.22628,0.67042 -Benin,Sub-Saharan Africa,155,3.34,0.03656,0.28665,0.35386,0.3191,0.4845,0.0801,0.1826,1.6332799999999998 -Syria,Middle East and Northern Africa,156,3.0060000000000002,0.05015,0.6632,0.47489,0.7219300000000001,0.15684,0.18905999999999998,0.47179,0.32858000000000004 -Burundi,Sub-Saharan Africa,157,2.905,0.08657999999999999,0.0153,0.41586999999999996,0.22396,0.1185,0.10062,0.19727,1.83302 -Togo,Sub-Saharan Africa,158,2.839,0.06727000000000001,0.20868,0.13995,0.28443,0.36453,0.10730999999999999,0.16680999999999999,1.56726 +_id,ags2,bundesland,ags5,kreis,kr_to_be,kr_to_bett,kr_to_ga,kr_to_gue +1,1,Schleswig-Holstein,1001,"Flensburg, Stadt",21,1761,188390,322191 +2,1,Schleswig-Holstein,1002,"Kiel, Landeshauptstadt",47,4763,385648,805038 +3,1,Schleswig-Holstein,1003,"Lübeck, Hansestadt",103,10626,754190,1825115 +4,1,Schleswig-Holstein,1004,"Neumünster, Stadt",12,1097,93659,187823 +5,1,Schleswig-Holstein,1051,Dithmarschen,326,11221,350821,1685871 +6,1,Schleswig-Holstein,1053,Herzogtum Lauenburg,99,4650,204571,674982 +7,1,Schleswig-Holstein,1054,Nordfriesland,1344,72340,1638001,9673107 +8,1,Schleswig-Holstein,1055,Ostholstein,887,67290,1787773,8664740 +9,1,Schleswig-Holstein,1056,Pinneberg,92,4728,279448,633643 +10,1,Schleswig-Holstein,1057,Plön,219,11898,291330,1366573 +11,1,Schleswig-Holstein,1058,Rendsburg-Eckernförde,199,12408,475986,1852289 +12,1,Schleswig-Holstein,1059,Schleswig-Flensburg,246,11184,416854,1250814 +13,1,Schleswig-Holstein,1060,Segeberg,72,5018,297986,785645 +14,1,Schleswig-Holstein,1061,Steinburg,36,1068,59816,126988 +15,1,Schleswig-Holstein,1062,Stormarn,52,2731,206258,396760 +16,2,Hamburg,2000,Hamburg,396,66610,7096482,14367399 +17,3,Niedersachsen,3101,Braunschweig,47,4831,422747,684810 +18,3,Niedersachsen,3102,Salzgitter,36,1241,52451,156969 +19,3,Niedersachsen,3103,Wolfsburg,45,4812,367432,615741 +20,3,Niedersachsen,3151,Gifhorn,82,4043,130514,333363 +21,3,Niedersachsen,3153,Goslar,350,22522,811258,2561313 +22,3,Niedersachsen,3154,Helmstedt,35,2311,97320,166590 +23,3,Niedersachsen,3155,Northeim,78,5415,157702,451346 +24,3,Niedersachsen,3157,Peine,23,957,58422,102637 +25,3,Niedersachsen,3158,Wolfenbüttel,29,1082,50681,126183 +26,3,Niedersachsen,3159,Göttingen,244,17582,761436,1891425 +27,3,Niedersachsen,3241,Hannover,351,31777,2215112,4050639 +28,3,Niedersachsen,3251,Diepholz,89,4072,142714,296109 +29,3,Niedersachsen,3252,Hameln-Pyrmont,120,10716,306577,1151357 +30,3,Niedersachsen,3254,Hildesheim,103,5784,276748,633192 +31,3,Niedersachsen,3255,Holzminden,53,4290,107102,245368 +32,3,Niedersachsen,3256,Nienburg/Weser,65,4447,125934,300764 +33,3,Niedersachsen,3257,Schaumburg,95,6790,243549,850258 +34,3,Niedersachsen,3351,Celle,117,8552,304550,749730 +35,3,Niedersachsen,3352,Cuxhaven,296,26763,649721,2623740 +36,3,Niedersachsen,3353,Harburg,119,7553,309301,736928 +37,3,Niedersachsen,3354,Lüchow-Dannenberg,75,4398,96382,270738 +38,3,Niedersachsen,3355,Lüneburg,90,6560,299961,640889 +39,3,Niedersachsen,3356,Osterholz,42,1602,63334,151783 +40,3,Niedersachsen,3357,Rotenburg (Wümme),88,7277,212110,554883 +41,3,Niedersachsen,3358,Heidekreis,220,23275,928181,2841371 +42,3,Niedersachsen,3359,Stade,98,5265,212205,516220 +43,3,Niedersachsen,3360,Uelzen,96,5551,161682,737961 +44,3,Niedersachsen,3361,Verden,64,3511,186049,360815 +45,3,Niedersachsen,3401,Delmenhorst,8,505,32385,57570 +46,3,Niedersachsen,3402,Emden,21,1354,93992,185871 +47,3,Niedersachsen,3403,Oldenburg,26,2484,168768,377348 +48,3,Niedersachsen,3404,Osnabrück,41,3463,308896,479661 +49,3,Niedersachsen,3405,Wilhelmshaven,33,2084,135239,359348 +50,3,Niedersachsen,3451,Ammerland,105,6445,281670,886502 +51,3,Niedersachsen,3452,Aurich,664,35129,866388,4246281 +52,3,Niedersachsen,3453,Cloppenburg,89,5884,167839,450468 +53,3,Niedersachsen,3454,Emsland,222,20346,700295,2220982 +54,3,Niedersachsen,3455,Friesland,223,21119,423577,2257786 +55,3,Niedersachsen,3456,Grafschaft Bentheim,70,7765,240450,831364 +56,3,Niedersachsen,3457,Leer,259,13774,359336,1840423 +57,3,Niedersachsen,3458,Oldenburg,60,4028,176548,339398 +58,3,Niedersachsen,3459,Osnabrück,178,13930,458319,1749257 +59,3,Niedersachsen,3460,Vechta,59,4407,147496,381988 +60,3,Niedersachsen,3461,Wesermarsch,75,8316,202816,798107 +61,3,Niedersachsen,3462,Wittmund,460,23534,523251,2688714 +62,4,Bremen,4011,Bremen,97,12738,1165519,2139174 +63,4,Bremen,4012,Bremerhaven,28,2983,245393,450794 +64,5,Nordrhein-Westfalen,5111,Düsseldorf,226,27817,3068803,4988092 +65,5,Nordrhein-Westfalen,5112,Duisburg,48,3665,286066,565313 +66,5,Nordrhein-Westfalen,5113,Essen,97,9937,814428,1602022 +67,5,Nordrhein-Westfalen,5114,Krefeld,22,1754,150590,251113 +68,5,Nordrhein-Westfalen,5116,Mönchengladbach,31,2195,193339,335230 +69,5,Nordrhein-Westfalen,5117,Mülheim an der Ruhr,30,1680,103254,189536 +70,5,Nordrhein-Westfalen,5119,Oberhausen,25,2547,234032,476177 +71,5,Nordrhein-Westfalen,5120,Remscheid,17,885,68415,115184 +72,5,Nordrhein-Westfalen,5122,Solingen,20,994,53171,99161 +73,5,Nordrhein-Westfalen,5124,Wuppertal,42,3843,241456,599393 +74,5,Nordrhein-Westfalen,5154,Kleve,135,5814,438111,921757 +75,5,Nordrhein-Westfalen,5158,Mettmann,94,7185,546079,949383 +76,5,Nordrhein-Westfalen,5162,Rhein-Kreis Neuss,84,5932,426468,944159 +77,5,Nordrhein-Westfalen,5166,Viersen,65,2632,173549,354037 +78,5,Nordrhein-Westfalen,5170,Wesel,106,4647,433371,824206 +79,5,Nordrhein-Westfalen,5314,Bonn,95,8829,853501,1597228 +80,5,Nordrhein-Westfalen,5315,Köln,279,32493,3699735,6287677 +81,5,Nordrhein-Westfalen,5316,Leverkusen,21,1513,132591,249769 +82,5,Nordrhein-Westfalen,5334,Aachen,186,9781,801514,1621955 +83,5,Nordrhein-Westfalen,5358,Düren,87,3812,222439,575956 +84,5,Nordrhein-Westfalen,5362,Rhein-Erft-Kreis,120,7944,514725,1414702 +85,5,Nordrhein-Westfalen,5366,Euskirchen,138,5791,293531,844175 +86,5,Nordrhein-Westfalen,5370,Heinsberg,54,1522,110024,255780 +87,5,Nordrhein-Westfalen,5374,Oberbergischer Kreis,103,5611,283826,862116 +88,5,Nordrhein-Westfalen,5378,Rheinisch-Bergischer Kreis,73,3662,232111,549429 +89,5,Nordrhein-Westfalen,5382,Rhein-Sieg-Kreis,147,9417,617803,1304472 +90,5,Nordrhein-Westfalen,5512,Bottrop,12,619,38733,80728 +91,5,Nordrhein-Westfalen,5513,Gelsenkirchen,23,2200,143948,363864 +92,5,Nordrhein-Westfalen,5515,Münster,76,7896,658531,1341708 +93,5,Nordrhein-Westfalen,5554,Borken,125,5183,339147,678346 +94,5,Nordrhein-Westfalen,5558,Coesfeld,82,3998,209091,635334 +95,5,Nordrhein-Westfalen,5562,Recklinghausen,90,4465,359521,707961 +96,5,Nordrhein-Westfalen,5566,Steinfurt,177,5388,360103,879938 +97,5,Nordrhein-Westfalen,5570,Warendorf,84,3084,176409,468053 +98,5,Nordrhein-Westfalen,5711,Bielefeld,58,4198,376401,679903 +99,5,Nordrhein-Westfalen,5754,Gütersloh,102,4200,277106,588467 +100,5,Nordrhein-Westfalen,5758,Herford,53,2437,99293,378321 +101,5,Nordrhein-Westfalen,5762,Höxter,117,5975,243583,1109666 +102,5,Nordrhein-Westfalen,5766,Lippe,186,9019,435237,1686991 +103,5,Nordrhein-Westfalen,5770,Minden-Lübbecke,109,6665,315005,1464782 +104,5,Nordrhein-Westfalen,5774,Paderborn,100,5553,359273,979856 +105,5,Nordrhein-Westfalen,5911,Bochum,40,4046,370633,634766 +106,5,Nordrhein-Westfalen,5913,Dortmund,65,7611,814607,1352848 +107,5,Nordrhein-Westfalen,5914,Hagen,27,1533,114643,289154 +108,5,Nordrhein-Westfalen,5915,Hamm,23,1289,110962,162482 +109,5,Nordrhein-Westfalen,5916,Herne,9,521,37083,67587 +110,5,Nordrhein-Westfalen,5954,Ennepe-Ruhr-Kreis,66,3469,205501,547268 +111,5,Nordrhein-Westfalen,5958,Hochsauerlandkreis,458,26418,1282432,4083164 +112,5,Nordrhein-Westfalen,5962,Märkischer Kreis,110,3975,209005,461280 +113,5,Nordrhein-Westfalen,5966,Olpe,121,4252,265926,617419 +114,5,Nordrhein-Westfalen,5970,Siegen-Wittgenstein,110,4998,255728,836051 +115,5,Nordrhein-Westfalen,5974,Soest,156,7758,434833,1643064 +116,5,Nordrhein-Westfalen,5978,Unna,61,3405,214991,410008 +117,6,Hessen,6411,Kreisfreie Stadt Darmstadt,43,4482,353372,707139 +118,6,Hessen,6412,Kreisfreie Stadt Frankfurt am Main,290,53567,5934778,10149671 +119,6,Hessen,6413,Kreisfreie Stadt Offenbach am Main,39,3589,254560,535342 +120,6,Hessen,6414,Landeshauptstadt Wiesbaden,80,7520,580346,1251424 +121,6,Hessen,6431,Bergstraße,138,7294,335379,794177 +122,6,Hessen,6432,Darmstadt-Dieburg,90,4525,240212,591947 +123,6,Hessen,6433,Groß-Gerau,108,8439,676968,1261563 +124,6,Hessen,6434,Hochtaunus,128,8733,485210,1339030 +125,6,Hessen,6435,Main-Kinzig,197,10771,385410,1444031 +126,6,Hessen,6436,Main-Taunus,93,6656,438865,861241 +127,6,Hessen,6437,Odenwaldkreis,113,4730,152492,424785 +128,6,Hessen,6438,Offenbach,108,6868,497704,1022943 +129,6,Hessen,6439,Rheingau-Taunus,170,10326,507384,1223415 +130,6,Hessen,6440,Wetterau,109,6711,252039,1108717 +131,6,Hessen,6531,Gießen,101,6139,249431,473247 +132,6,Hessen,6532,Lahn-Dill,93,6002,253830,536794 +133,6,Hessen,6533,Limburg-Weilburg,78,6515,223659,552587 +134,6,Hessen,6534,Marburg-Biedenkopf,110,6624,284845,692920 +135,6,Hessen,6535,Vogelsberg,109,6498,215986,538086 +136,6,Hessen,6611,Kreisfreie Stadt Kassel,76,7000,533093,930854 +137,6,Hessen,6631,Fulda,275,15089,803195,1719041 +138,6,Hessen,6632,Hersfeld-Rotenburg,108,10328,383617,1156969 +139,6,Hessen,6633,Kassel,147,12219,306125,738723 +140,6,Hessen,6634,Schwalm-Eder,137,8280,236011,659044 +141,6,Hessen,6635,Waldeck-Frankenberg,388,26374,851662,3312333 +142,6,Hessen,6636,Werra-Meißner,116,7577,170899,714660 +143,7,Rheinland-Pfalz,7111,Stadt Koblenz,50,3886,360612,697924 +144,7,Rheinland-Pfalz,7131,Ahrweiler,202,10061,539460,1357405 +145,7,Rheinland-Pfalz,7132,Altenkirchen (Ww),43,2190,91848,226120 +146,7,Rheinland-Pfalz,7133,Bad Kreuznach,107,5878,255544,961220 +147,7,Rheinland-Pfalz,7134,Birkenfeld,55,3232,98007,292132 +148,7,Rheinland-Pfalz,7135,Cochem-Zell,298,12910,522774,1648419 +149,7,Rheinland-Pfalz,7137,Mayen-Koblenz,159,6170,350121,772057 +150,7,Rheinland-Pfalz,7138,Neuwied,89,3104,156291,318795 +151,7,Rheinland-Pfalz,7140,Rhein-Hunsrück-Kreis,134,5605,364093,775404 +152,7,Rheinland-Pfalz,7141,Rhein-Lahn-Kreis,120,5281,246422,750928 +153,7,Rheinland-Pfalz,7143,Westerwaldkreis,76,4456,306906,733656 +154,7,Rheinland-Pfalz,7211,Stadt Trier,61,5010,461377,830892 +155,7,Rheinland-Pfalz,7231,Bernkastel-Wittlich,359,12247,516671,1654418 +156,7,Rheinland-Pfalz,7232,Eifelkreis Bitburg-Prüm,149,6484,231140,571466 +157,7,Rheinland-Pfalz,7233,Vulkaneifel,122,9138,390504,1416794 +158,7,Rheinland-Pfalz,7235,Trier-Saarburg,195,8974,330258,1062808 +159,7,Rheinland-Pfalz,7311,Stadt Frankenthal (Pfalz),6,625,52783,94507 +160,7,Rheinland-Pfalz,7312,Stadt Kaiserslautern,28,-99,-99,-99 +161,7,Rheinland-Pfalz,7313,Stadt Landau in der Pfalz,17,743,56011,106040 +162,7,Rheinland-Pfalz,7314,Stadt Ludwigshafen a. Rh.,22,-99,-99,-99 +163,7,Rheinland-Pfalz,7315,Stadt Mainz,41,5472,600073,906699 +164,7,Rheinland-Pfalz,7316,Stadt Neustadt a.d. W.,25,1297,102819,208187 +165,7,Rheinland-Pfalz,7317,Stadt Pirmasens,7,372,27856,-99 +166,7,Rheinland-Pfalz,7318,Stadt Speyer,19,1410,155565,262922 +167,7,Rheinland-Pfalz,7319,Stadt Worms,25,1056,74586,155009 +168,7,Rheinland-Pfalz,7320,Stadt Zweibrücken,5,284,-99,39836 +169,7,Rheinland-Pfalz,7331,Alzey-Worms,62,1622,87612,-99 +170,7,Rheinland-Pfalz,7332,Bad Dürkheim,134,5316,343453,840400 +171,7,Rheinland-Pfalz,7333,Donnersbergkreis,32,1300,68890,139201 +172,7,Rheinland-Pfalz,7334,Germersheim,47,1358,61655,162143 +173,7,Rheinland-Pfalz,7335,Kaiserslautern,51,2144,90535,262707 +174,7,Rheinland-Pfalz,7336,Kusel,23,802,37888,85776 +175,7,Rheinland-Pfalz,7337,Südliche Weinstraße,187,5840,315227,794962 +176,7,Rheinland-Pfalz,7338,Rhein-Pfalz-Kreis,23,-99,-99,-99 +177,7,Rheinland-Pfalz,7339,Mainz-Bingen,105,3879,237751,439595 +178,7,Rheinland-Pfalz,7340,Südwestpfalz,96,2961,137341,325983 +179,8,Baden-Württemberg,8111,Stuttgart,171,21494,2062673,3911781 +180,8,Baden-Württemberg,8115,Böblingen,117,7984,499294,1164705 +181,8,Baden-Württemberg,8116,Esslingen,174,10572,819398,1621975 +182,8,Baden-Württemberg,8117,Göppingen,94,4607,230854,589685 +183,8,Baden-Württemberg,8118,Ludwigsburg,150,7604,515486,1091443 +184,8,Baden-Württemberg,8119,Rems-Murr-Kreis,120,6487,350663,717758 +185,8,Baden-Württemberg,8121,Heilbronn,27,1871,174884,338296 +186,8,Baden-Württemberg,8125,Heilbronn,170,9972,407824,1374720 +187,8,Baden-Württemberg,8126,Hohenlohekreis,82,4523,208595,433299 +188,8,Baden-Württemberg,8127,Schwäbisch Hall,129,5579,277719,594063 +189,8,Baden-Württemberg,8128,Main-Tauber-Kreis,131,10099,358976,1089886 +190,8,Baden-Württemberg,8135,Heidenheim,45,1862,126029,224737 +191,8,Baden-Württemberg,8136,Ostalbkreis,149,9147,394031,835913 +192,8,Baden-Württemberg,8211,Baden-Baden,87,5286,452982,1007739 +193,8,Baden-Württemberg,8212,Karlsruhe,61,6287,658668,1139836 +194,8,Baden-Württemberg,8215,Karlsruhe,123,7764,401617,1034044 +195,8,Baden-Württemberg,8216,Rastatt,132,6720,289301,614749 +196,8,Baden-Württemberg,8221,Heidelberg,84,7998,794339,1552834 +197,8,Baden-Württemberg,8222,Mannheim,62,7795,673571,1469030 +198,8,Baden-Württemberg,8225,Neckar-Odenwald-Kreis,101,5993,161690,517043 +199,8,Baden-Württemberg,8226,Rhein-Neckar-Kreis,177,12297,799161,1496505 +200,8,Baden-Württemberg,8231,Pforzheim,22,1692,120650,243273 +201,8,Baden-Württemberg,8235,Calw,198,13060,445259,1379113 +202,8,Baden-Württemberg,8236,Enzkreis,57,2287,123976,236264 +203,8,Baden-Württemberg,8237,Freudenstadt,216,11344,520602,1699450 +204,8,Baden-Württemberg,8311,Freiburg im Breisgau,83,9613,881280,1708237 +205,8,Baden-Württemberg,8315,Breisgau-Hochschwarzwald,616,35426,1412900,4871743 +206,8,Baden-Württemberg,8316,Emmendingen,135,5563,276066,654813 +207,8,Baden-Württemberg,8317,Ortenaukreis,527,29633,1799732,3837941 +208,8,Baden-Württemberg,8325,Rottweil,77,3440,133928,326068 +209,8,Baden-Württemberg,8326,Schwarzwald-Baar-Kreis,203,13441,482085,1659198 +210,8,Baden-Württemberg,8327,Tuttlingen,67,2965,140576,307718 +211,8,Baden-Württemberg,8335,Konstanz,226,19326,949232,2649744 +212,8,Baden-Württemberg,8336,Lörrach,244,11305,536193,1290022 +213,8,Baden-Württemberg,8337,Waldshut,282,11684,386153,1319751 +214,8,Baden-Württemberg,8415,Reutlingen,147,9707,437271,1177832 +215,8,Baden-Württemberg,8416,Tübingen,72,3175,216422,434483 +216,8,Baden-Württemberg,8417,Zollernalbkreis,82,3872,148339,348789 +217,8,Baden-Württemberg,8421,Ulm,50,4153,442326,688782 +218,8,Baden-Württemberg,8425,Alb-Donau-Kreis,104,5201,275874,547487 +219,8,Baden-Württemberg,8426,Biberach,90,5889,252688,799272 +220,8,Baden-Württemberg,8435,Bodenseekreis,430,26968,1108528,3311887 +221,8,Baden-Württemberg,8436,Ravensburg,161,10651,479313,1947743 +222,8,Baden-Württemberg,8437,Sigmaringen,98,6975,204441,620260 +223,9,Freistaat Bayern,9161,Ingolstadt,46,3493,332813,560022 +224,9,Freistaat Bayern,9162,München,446,77505,8265994,17124486 +225,9,Freistaat Bayern,9163,Rosenheim,21,1236,143307,227469 +226,9,Freistaat Bayern,9171,Altötting,59,2286,131731,288834 +227,9,Freistaat Bayern,9172,Berchtesgadener Land,490,16780,772136,2962304 +228,9,Freistaat Bayern,9173,Bad Tölz-Wolfratshausen,230,8243,398474,1222255 +229,9,Freistaat Bayern,9174,Dachau,55,2465,150965,358043 +230,9,Freistaat Bayern,9175,Ebersberg,58,2798,211292,438610 +231,9,Freistaat Bayern,9176,Eichstätt,133,5455,458726,889480 +232,9,Freistaat Bayern,9177,Erding,77,6684,878834,1315380 +233,9,Freistaat Bayern,9178,Freising,82,5842,668169,1015029 +234,9,Freistaat Bayern,9179,Fürstenfeldbruck,48,2122,140558,309734 +235,9,Freistaat Bayern,9180,Garmisch-Partenkirchen,516,19220,1192002,3544760 +236,9,Freistaat Bayern,9181,Landsberg am Lech,41,1660,121932,276697 +237,9,Freistaat Bayern,9182,Miesbach,384,14594,751918,2326373 +238,9,Freistaat Bayern,9183,Mühldorf a.Inn,45,1532,89035,190835 +239,9,Freistaat Bayern,9184,München,162,14857,1316342,2473258 +240,9,Freistaat Bayern,9185,Neuburg-Schrobenhausen,43,1225,68572,161455 +241,9,Freistaat Bayern,9186,Pfaffenhofen a.d.Ilm,51,2155,155307,295912 +242,9,Freistaat Bayern,9187,Rosenheim,345,14119,799895,2539836 +243,9,Freistaat Bayern,9188,Starnberg,88,4925,300718,768275 +244,9,Freistaat Bayern,9189,Traunstein,584,17568,762965,2961008 +245,9,Freistaat Bayern,9190,Weilheim-Schongau,75,3339,178499,597874 +246,9,Freistaat Bayern,9261,Landshut,22,1600,119580,235120 +247,9,Freistaat Bayern,9262,Passau,42,3103,331264,573855 +248,9,Freistaat Bayern,9263,Straubing,20,1046,83373,159663 +249,9,Freistaat Bayern,9271,Deggendorf,71,2829,172345,417538 +250,9,Freistaat Bayern,9272,Freyung-Grafenau,244,10694,320908,1410465 +251,9,Freistaat Bayern,9273,Kelheim,121,5259,292810,923456 +252,9,Freistaat Bayern,9274,Landshut,65,2261,115116,241380 +253,9,Freistaat Bayern,9275,Passau,482,24445,843019,4300462 +254,9,Freistaat Bayern,9276,Regen,439,15391,508498,2131080 +255,9,Freistaat Bayern,9277,Rottal-Inn,97,4399,200631,921534 +256,9,Freistaat Bayern,9278,Straubing-Bogen,108,4336,196569,646442 +257,9,Freistaat Bayern,9279,Dingolfing-Landau,38,1305,65927,158316 +258,9,Freistaat Bayern,9361,Amberg,11,605,43845,87954 +259,9,Freistaat Bayern,9362,Regensburg,74,6125,626210,1100392 +260,9,Freistaat Bayern,9363,Weiden i.d.OPf.,11,551,42833,78109 +261,9,Freistaat Bayern,9371,Amberg-Sulzbach,79,2620,125848,305237 +262,9,Freistaat Bayern,9372,Cham,274,13608,480059,1910761 +263,9,Freistaat Bayern,9373,Neumarkt i.d.OPf.,75,3238,230342,430263 +264,9,Freistaat Bayern,9374,Neustadt a.d.Waldnaab,98,2520,119539,270828 +265,9,Freistaat Bayern,9375,Regensburg,77,2878,195118,429666 +266,9,Freistaat Bayern,9376,Schwandorf,100,3115,148366,385997 +267,9,Freistaat Bayern,9377,Tirschenreuth,104,3259,119294,395406 +268,9,Freistaat Bayern,9461,Bamberg,57,3572,394333,708202 +269,9,Freistaat Bayern,9462,Bayreuth,27,2139,191823,402209 +270,9,Freistaat Bayern,9463,Coburg,17,966,72069,135618 +271,9,Freistaat Bayern,9464,Hof,21,1163,88343,148554 +272,9,Freistaat Bayern,9471,Bamberg,82,3237,217783,409397 +273,9,Freistaat Bayern,9472,Bayreuth,179,5575,261223,758637 +274,9,Freistaat Bayern,9473,Coburg,45,1911,80430,312768 +275,9,Freistaat Bayern,9474,Forchheim,118,3605,159391,374689 +276,9,Freistaat Bayern,9475,Hof,78,2738,127144,498315 +277,9,Freistaat Bayern,9476,Kronach,44,1398,71000,180429 +278,9,Freistaat Bayern,9477,Kulmbach,58,2007,116368,229864 +279,9,Freistaat Bayern,9478,Lichtenfels,84,3587,194301,636558 +280,9,Freistaat Bayern,9479,Wunsiedel i.Fichtelgebirge,60,2520,145363,378571 +281,9,Freistaat Bayern,9561,Ansbach,15,634,40027,105364 +282,9,Freistaat Bayern,9562,Erlangen,47,2963,258203,506917 +283,9,Freistaat Bayern,9563,Fürth,23,1989,151887,322318 +284,9,Freistaat Bayern,9564,Nürnberg,153,18711,2001217,3610613 +285,9,Freistaat Bayern,9565,Schwabach,8,516,51187,83983 +286,9,Freistaat Bayern,9571,Ansbach,241,8729,728791,1302829 +287,9,Freistaat Bayern,9572,Erlangen-Höchstadt,54,2896,179325,454969 +288,9,Freistaat Bayern,9573,Fürth,41,1433,118524,224969 +289,9,Freistaat Bayern,9574,Nürnberger Land,76,3103,199712,400742 +290,9,Freistaat Bayern,9575,Neustadt a.d.Aisch-Bad Windsheim,101,3864,193628,624032 +291,9,Freistaat Bayern,9576,Roth,84,2505,196099,363968 +292,9,Freistaat Bayern,9577,Weißenburg-Gunzenhausen,129,3639,249428,820213 +293,9,Freistaat Bayern,9661,Aschaffenburg,13,1042,100673,196083 +294,9,Freistaat Bayern,9662,Schweinfurt,23,1537,123506,233793 +295,9,Freistaat Bayern,9663,Würzburg,53,4598,614024,965700 +296,9,Freistaat Bayern,9671,Aschaffenburg,98,3768,279724,512994 +297,9,Freistaat Bayern,9672,Bad Kissingen,143,10117,435481,2195915 +298,9,Freistaat Bayern,9673,Rhön-Grabfeld,104,5139,242601,822811 +299,9,Freistaat Bayern,9674,Haßberge,70,1978,116856,228606 +300,9,Freistaat Bayern,9675,Kitzingen,126,3987,405882,749093 +301,9,Freistaat Bayern,9676,Miltenberg,78,2307,158205,299537 +302,9,Freistaat Bayern,9677,Main-Spessart,109,3449,243146,530671 +303,9,Freistaat Bayern,9678,Schweinfurt,39,1119,54736,113787 +304,9,Freistaat Bayern,9679,Würzburg,91,2992,256840,476700 +305,9,Freistaat Bayern,9761,Augsburg,47,4638,478115,855121 +306,9,Freistaat Bayern,9762,Kaufbeuren,8,497,49563,89787 +307,9,Freistaat Bayern,9763,Kempten (Allgäu),21,1517,187609,326587 +308,9,Freistaat Bayern,9764,Memmingen,22,1009,111396,188981 +309,9,Freistaat Bayern,9771,Aichach-Friedberg,46,1610,124216,224400 +310,9,Freistaat Bayern,9772,Augsburg,62,3037,224591,407590 +311,9,Freistaat Bayern,9773,Dillingen a.d.Donau,29,1466,90161,233410 +312,9,Freistaat Bayern,9774,Günzburg,86,5359,566168,972677 +313,9,Freistaat Bayern,9775,Neu-Ulm,62,3185,290778,495415 +314,9,Freistaat Bayern,9776,Lindau (Bodensee),254,10155,567593,2033041 +315,9,Freistaat Bayern,9777,Ostallgäu,470,16714,1187008,3470373 +316,9,Freistaat Bayern,9778,Unterallgäu,130,6186,310896,1107995 +317,9,Freistaat Bayern,9779,Donau-Ries,78,2957,178388,382436 +318,9,Freistaat Bayern,9780,Oberallgäu,1099,36233,1559808,6230034 +319,10,Saarland,10041,Regionalverband Saarbrücken,56,3924,353760,617545 +320,10,Saarland,10042,Landkreis Merzig-Wadern,64,5668,187756,630651 +321,10,Saarland,10043,Landkreis Neunkirchen,22,1208,53934,235407 +322,10,Saarland,10044,Landkreis Saarlouis,48,2915,101990,276095 +323,10,Saarland,10045,Saarpfalz-Kreis,42,3302,110697,402459 +324,10,Saarland,10046,Landkreis St. Wendel,35,7261,265728,996398 +325,11,Berlin,11000,Berlin,798,146742,13502552,32871634 +326,12,Brandenburg,12051,Brandenburg an der Havel,46,1854,97694,235723 +327,12,Brandenburg,12052,Cottbus,21,1790,146108,266552 +328,12,Brandenburg,12053,Frankfurt (Oder),19,839,59536,138641 +329,12,Brandenburg,12054,Potsdam,58,6086,550173,1277928 +330,12,Brandenburg,12060,Barnim,91,6175,261933,905925 +331,12,Brandenburg,12061,Dahme-Spreewald,169,10128,840874,1813163 +332,12,Brandenburg,12062,Elbe-Elster,60,1830,58645,238070 +333,12,Brandenburg,12063,Havelland,68,2198,121081,259953 +334,12,Brandenburg,12064,Märkisch-Oderland,101,4696,200149,767318 +335,12,Brandenburg,12065,Oberhavel,106,3878,227295,496843 +336,12,Brandenburg,12066,Oberspreewald-Lausitz,96,4384,272848,765615 +337,12,Brandenburg,12067,Oder-Spree,131,9090,437844,1332397 +338,12,Brandenburg,12068,Ostprignitz-Ruppin,124,6621,332376,1083625 +339,12,Brandenburg,12069,Potsdam-Mittelmark,142,7625,448660,1311098 +340,12,Brandenburg,12070,Prignitz,79,2687,126828,275513 +341,12,Brandenburg,12071,Spree-Neiße,114,4713,273165,789362 +342,12,Brandenburg,12072,Teltow-Fläming,96,4422,260118,576450 +343,12,Brandenburg,12073,Uckermark,142,6569,339803,1012548 +344,13,Mecklenburg-Vorpommern,13003,"Rostock, Hansestadt",113,14958,818282,2139097 +345,13,Mecklenburg-Vorpommern,13004,"Schwerin, Landeshauptstadt",47,2748,209079,362429 +346,13,Mecklenburg-Vorpommern,13071,Mecklenburgische Seenplatte,408,44850,1050403,3639281 +347,13,Mecklenburg-Vorpommern,13072,Landkreis Rostock,359,35919,1151835,5022830 +348,13,Mecklenburg-Vorpommern,13073,Vorpommern-Rügen,925,91770,2229504,10024917 +349,13,Mecklenburg-Vorpommern,13074,Nordwestmecklenburg,195,21080,643147,2335845 +350,13,Mecklenburg-Vorpommern,13075,Vorpommern-Greifswald,563,53093,1392886,6228820 +351,13,Mecklenburg-Vorpommern,13076,Ludwigslust-Parchim,185,14246,379063,1131080 +352,14,Sachsen,14511,Chemnitz,44,3506,267116,520996 +353,14,Sachsen,14521,Erzgebirgskreis,274,12761,611082,1889450 +354,14,Sachsen,14522,Mittelsachsen,160,6074,292258,648680 +355,14,Sachsen,14523,Vogtlandkreis,152,8162,348893,1443185 +356,14,Sachsen,14524,Zwickau,86,4627,249467,514743 +357,14,Sachsen,14612,Dresden,184,23024,2247007,4604408 +358,14,Sachsen,14625,Bautzen,161,5460,276778,749466 +359,14,Sachsen,14626,Görlitz,212,9250,440782,1144285 +360,14,Sachsen,14627,Meißen,138,5837,346604,756743 +361,14,Sachsen,14628,Sächsische Schweiz-Osterzgebirge,338,16501,751778,2790744 +362,14,Sachsen,14713,Leipzig,133,17686,1836797,3376257 +363,14,Sachsen,14729,Leipzig,107,5321,238426,871799 +364,14,Sachsen,14730,Nordsachsen,96,4771,271825,776001 +365,15,Sachsen-Anhalt,15001,Dessau-Roßlau,26,1470,122642,202806 +366,15,Sachsen-Anhalt,15002,Halle (Saale),41,2855,254159,429592 +367,15,Sachsen-Anhalt,15003,Magdeburg,51,5661,405777,692213 +368,15,Sachsen-Anhalt,15081,Altmarkkreis Salzwedel,53,4069,98342,351575 +369,15,Sachsen-Anhalt,15082,Anhalt-Bitterfeld,59,3739,120324,240435 +370,15,Sachsen-Anhalt,15083,Börde,55,5078,173334,449806 +371,15,Sachsen-Anhalt,15084,Burgenlandkreis,116,6463,260715,727353 +372,15,Sachsen-Anhalt,15085,Harz,344,21763,1003185,2791372 +373,15,Sachsen-Anhalt,15086,Jerichower Land,44,2484,80721,155273 +374,15,Sachsen-Anhalt,15087,Mansfeld-Südharz,70,3800,167668,368063 +375,15,Sachsen-Anhalt,15088,Saalekreis,66,4338,223790,422542 +376,15,Sachsen-Anhalt,15089,Salzlandkreis,69,3881,138316,431731 +377,15,Sachsen-Anhalt,15090,Stendal,58,3328,142354,267370 +378,15,Sachsen-Anhalt,15091,Wittenberg,84,6950,241359,704767 +379,16,Thüringen,16051,Erfurt,66,5438,504212,879168 +380,16,Thüringen,16052,Gera,15,1201,104524,172107 +381,16,Thüringen,16053,Jena,28,2124,198505,334627 +382,16,Thüringen,16054,Suhl,18,1815,91087,233175 +383,16,Thüringen,16055,Weimar,46,4383,394516,743331 +384,16,Thüringen,16056,Eisenach,30,2064,201388,336530 +385,16,Thüringen,16061,Eichsfeld,48,2304,116130,330929 +386,16,Thüringen,16062,Nordhausen,34,1785,79623,187366 +387,16,Thüringen,16063,Wartburgkreis,91,4264,135088,775418 +388,16,Thüringen,16064,Unstrut-Hainich-Kreis,46,2414,119606,407851 +389,16,Thüringen,16065,Kyffhäuserkreis,42,2605,106940,357293 +390,16,Thüringen,16066,Schmalkalden-Meiningen,118,5430,266952,620854 +391,16,Thüringen,16067,Gotha,98,6098,334024,942050 +392,16,Thüringen,16068,Sömmerda,19,677,28815,63209 +393,16,Thüringen,16069,Hildburghausen,62,2883,94846,369756 +394,16,Thüringen,16070,Ilm-Kreis,87,3418,156608,365902 +395,16,Thüringen,16071,Weimarer Land,49,3291,167374,551760 +396,16,Thüringen,16072,Sonneberg,40,1430,58099,183976 +397,16,Thüringen,16073,Saalfeld-Rudolstadt,96,4128,160280,446439 +398,16,Thüringen,16074,Saale-Holzland-Kreis,46,2082,99598,349616 +399,16,Thüringen,16075,Saale-Orla-Kreis,67,2850,100450,328509 +400,16,Thüringen,16076,Greiz,36,1545,65812,137514 +401,16,Thüringen,16077,Altenburger Land,25,949,43698,96785 diff --git a/data/metadata/column_type_desc.csv b/data/metadata/column_type_desc.csv index bf72a31..e6f3cc2 100644 --- a/data/metadata/column_type_desc.csv +++ b/data/metadata/column_type_desc.csv @@ -1,13 +1,10 @@ column_name,type -Country,object -Region,categorical -Happiness Rank,numerical -Happiness Score,numerical -Standard Error,numerical -Economy (GDP per Capita),numerical -Family,numerical -Health (Life Expectancy),numerical -Freedom,numerical -Trust (Government Corruption),numerical -Generosity,numerical -Dystopia Residual,numerical +_id,numerical +ags2,categorical +bundesland,categorical +ags5,numerical +kreis,object +kr_to_be,numerical +kr_to_bett,numerical +kr_to_ga,numerical +kr_to_gue,numerical diff --git a/data/metadata/model_params.json b/data/metadata/model_params.json index 37565c4..d75ab84 100644 --- a/data/metadata/model_params.json +++ b/data/metadata/model_params.json @@ -1 +1 @@ -{"X": ["Happiness Rank"], "y": "Happiness Score", "pred_type": "Regression"} \ No newline at end of file +{"X": ["bundesland", "ags5", "kr_to_ga", "kr_to_bett"], "y": "kr_to_be", "pred_type": "Regression"} \ No newline at end of file diff --git a/data/metadata/model_reg.sav b/data/metadata/model_reg.sav index 758cec7..c026ec6 100644 Binary files a/data/metadata/model_reg.sav and b/data/metadata/model_reg.sav differ diff --git a/pages/data_upload.py b/pages/data_upload.py index d033916..96b4591 100644 --- a/pages/data_upload.py +++ b/pages/data_upload.py @@ -1,10 +1,7 @@ -import collections -from numpy.core.defchararray import lower import streamlit as st import numpy as np import pandas as pd from pages import utils -import streamlit.components.v1 as components # @st.cache def app(): diff --git a/pages/data_visualize.py b/pages/data_visualize.py index 098e987..f418cdf 100644 --- a/pages/data_visualize.py +++ b/pages/data_visualize.py @@ -1,11 +1,9 @@ -from numpy.core.defchararray import index import streamlit as st import numpy as np import pandas as pd from pages import utils import matplotlib.pyplot as plt import seaborn as sns -import altair as alt import os def app(): diff --git a/pages/inference.py b/pages/inference.py deleted file mode 100644 index bbfad18..0000000 --- a/pages/inference.py +++ /dev/null @@ -1,50 +0,0 @@ -# Import necessary libraries -import json -import joblib -import os - -import pandas as pd -import streamlit as st - -# Machine Learning -from sklearn.model_selection import train_test_split -from sklearn.preprocessing import LabelEncoder -from sklearn.linear_model import LinearRegression, LogisticRegression -from sklearn.tree import DecisionTreeRegressor, DecisionTreeClassifier - -def app(): - - # Read the data - if 'main_data.csv' not in os.listdir('data'): - st.markdown("Please upload data through `Upload Data` page!") - else: - data = pd.read_csv('data/main_data.csv') - - # Also read the column types - types = pd.read_csv('data/metadata/column_type_desc.csv') - # Load the model parameters - with open('data/metadata/model_params.json') as f: - params = json.load(f) - - X_var = params['X'] - y_var = params['y'] - pred_type = params['pred_type'] - - st.write(f"""You ran a machine learning model with the following parameters:\n - Prediction Variables: {X_var} - Predicted Variable: {y_var} - - In this section you can mainpulate the X_values to see how the y_variables will change! - """) - - for i in range(len(X_var)): - col = X_var[i] - st.write(col) - - # Check column type - type = types[types['column_name'] == col]['type'].values[0] - if type == 'numerical': - min_val = float(round(data[col].min(), 1)) - max_val = float(round(data[col].max(), 1)) - - col_value = st.slider(label=col, min_value=min_val, max_value=max_val, step=(max_val-min_val)/10) diff --git a/pages/utils.py b/pages/utils.py index df89b77..e0d7421 100644 --- a/pages/utils.py +++ b/pages/utils.py @@ -9,9 +9,9 @@ def isCategorical(col): return True return False -def getProfile(data): - report = ProfileReport(data) - report.to_file(output_file = 'data/output.html') +# def getProfile(data): +# report = ProfileReport(data) +# report.to_file(output_file = 'data/output.html') def getColumnTypes(cols): Categorical=[] diff --git a/requirements.txt b/requirements.txt index 1e68559..7d2b83f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,89 +1,4 @@ -altair==4.1.0 -argon2-cffi==20.1.0 -astor==0.8.1 -async-generator==1.10 -attrs==21.2.0 -backcall==0.2.0 -base58==2.1.0 -bleach==3.3.0 -blinker==1.4 -cachetools==4.2.2 -certifi==2020.12.5 -cffi==1.14.5 -chardet==4.0.0 -click==8.0.0 -colorama==0.4.4 -cycler==0.10.0 -decorator==5.0.9 -defusedxml==0.7.1 -entrypoints==0.3 -gitdb==4.0.7 -GitPython==3.1.17 -idna==2.10 -importlib-metadata==4.0.1 -ipykernel==5.5.5 -ipython==7.16.1 -ipython-genutils==0.2.0 -ipywidgets==7.6.3 -jedi==0.18.0 -Jinja2==3.0.0 -joblib==1.0.1 -jsonschema==3.2.0 -jupyter-client==6.1.12 -jupyter-core==4.7.1 -jupyterlab-pygments==0.1.2 -jupyterlab-widgets==1.0.0 -kiwisolver==1.3.1 -MarkupSafe==2.0.0 -matplotlib==3.3.2 -mistune==0.8.4 -nbclient==0.5.3 -nbconvert==6.0.7 -nbformat==5.1.3 -nest-asyncio==1.5.1 -notebook==6.3.0 -numpy==1.19.5 -packaging==20.9 -pandas==1.1.5 -pandocfilters==1.4.3 -parso==0.8.2 -pickleshare==0.7.5 -Pillow==8.2.0 -prometheus-client==0.10.1 -prompt-toolkit==3.0.18 -protobuf==3.17.0 -pyarrow==4.0.0 -pycparser==2.20 -pydeck==0.6.2 -Pygments==2.9.0 -pyparsing==2.4.7 -pyrsistent==0.17.3 -python-dateutil==2.8.1 -pytz==2021.1 -pywin32==300 -pywinpty==0.5.7 -pyzmq==22.0.3 -requests==2.25.1 scikit-learn==0.24.2 -scipy==1.5.4 -seaborn==0.11.1 -Send2Trash==1.5.0 -six==1.16.0 -smmap==4.0.0 -streamlit==0.80.0 -terminado==0.9.5 -testpath==0.4.4 -threadpoolctl==2.1.0 -toml==0.10.2 -toolz==0.11.1 -tornado==6.1 -traitlets==4.3.3 -typing-extensions==3.10.0.0 -tzlocal==2.1 -urllib3==1.26.4 -validators==0.18.2 -watchdog==2.1.1 -wcwidth==0.2.5 -webencodings==0.5.1 -widgetsnbextension==3.5.1 -zipp==3.4.1 +pandas==1.2.4 +streamlit==0.83.0 +matplotlib==3.4.2 \ No newline at end of file