{"id":22445483,"url":"https://github.com/anas436/analyzing-real-world-data-set-in-ibm-db2-with-sqlmagic-and-python","last_synced_at":"2026-05-09T17:36:57.435Z","repository":{"id":110394333,"uuid":"498377444","full_name":"Anas436/Analyzing-Real-World-Data-Set-in-IBM-Db2-with-SQLMagic-and-Python","owner":"Anas436","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-31T14:50:01.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T10:48:09.008Z","etag":null,"topics":["ipython-sql","jupyter-notebook","matplotlib","pandas","python3","seaborn","sql","sql-magic","sqlalchemy"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Anas436.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-31T14:46:06.000Z","updated_at":"2022-05-31T16:11:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"5f72b4f7-3d2d-4f3f-827a-59bcb18e66a9","html_url":"https://github.com/Anas436/Analyzing-Real-World-Data-Set-in-IBM-Db2-with-SQLMagic-and-Python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Anas436/Analyzing-Real-World-Data-Set-in-IBM-Db2-with-SQLMagic-and-Python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anas436%2FAnalyzing-Real-World-Data-Set-in-IBM-Db2-with-SQLMagic-and-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anas436%2FAnalyzing-Real-World-Data-Set-in-IBM-Db2-with-SQLMagic-and-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anas436%2FAnalyzing-Real-World-Data-Set-in-IBM-Db2-with-SQLMagic-and-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anas436%2FAnalyzing-Real-World-Data-Set-in-IBM-Db2-with-SQLMagic-and-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anas436","download_url":"https://codeload.github.com/Anas436/Analyzing-Real-World-Data-Set-in-IBM-Db2-with-SQLMagic-and-Python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anas436%2FAnalyzing-Real-World-Data-Set-in-IBM-Db2-with-SQLMagic-and-Python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32828850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ipython-sql","jupyter-notebook","matplotlib","pandas","python3","seaborn","sql","sql-magic","sqlalchemy"],"created_at":"2024-12-06T03:14:45.818Z","updated_at":"2026-05-09T17:36:57.420Z","avatar_url":"https://github.com/Anas436.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Analyzing-Real-World-Data-Set-in-IBM-Db2-with-SQLMagic-and-Python\n\n\n\nThe city of Chicago released a dataset of socioeconomic data to the Chicago City Portal. This dataset contains a selection of six socioeconomic indicators of public health significance and a “hardship index,” for each Chicago community area, for the years 2008 – 2012.\n\nScores on the hardship index can range from 1 to 100, with a higher index number representing a greater level of hardship.\n\nA detailed description of the dataset can be found on the city of Chicago's website, but to summarize, the dataset has the following variables:\n\nCommunity Area Number (ca): Used to uniquely identify each row of the dataset\n\nCommunity Area Name (community_area_name): The name of the region in the city of Chicago\n\nPercent of Housing Crowded (percent_of_housing_crowded): Percent of occupied housing units with more than one person per room\n\nPercent Households Below Poverty (percent_households_below_poverty): Percent of households living below the federal poverty line\n\nPercent Aged 16+ Unemployed (percent_aged_16_unemployed): Percent of persons over the age of 16 years that are unemployed\n\nPercent Aged 25+ without High School Diploma (percent_aged_25_without_high_school_diploma): Percent of persons over the age of 25 years without a high school education\n\nPercent Aged Under 18 or Over 64:Percent of population under 18 or over 64 years of age (percent_aged_under_18_or_over_64): (ie. dependents)\n\nPer Capita Income (per_capita_income_): Community Area per capita income is estimated as the sum of tract-level aggragate incomes divided by the total population\n\nHardship Index (hardship_index): Score that incorporates each of the six selected socioeconomic indicators\n\nIn this Lab, we'll take a look at the variables in the socioeconomic indicators dataset and do some basic analysis with Python.\n\nConnect to the database Let us first load the SQL extension and establish a connection with the database\n\nThe following required modules are pre-installed in the Skills Network Labs environment. However if you run this notebook commands in a different Jupyter environment (e.g. Watson Studio or Ananconda) you may need to install these libraries by removing the # sign before !pip in the code cell below.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanas436%2Fanalyzing-real-world-data-set-in-ibm-db2-with-sqlmagic-and-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanas436%2Fanalyzing-real-world-data-set-in-ibm-db2-with-sqlmagic-and-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanas436%2Fanalyzing-real-world-data-set-in-ibm-db2-with-sqlmagic-and-python/lists"}