{"id":26417716,"url":"https://github.com/compcode1/depression-dataset","last_synced_at":"2026-02-15T19:09:22.925Z","repository":{"id":259085129,"uuid":"876278790","full_name":"Compcode1/depression-dataset","owner":"Compcode1","description":"The goal of this small project was to expand a medical dataset by adding a new column named Depression based on predefined medical and exam score conditions. The expanded dataset was then saved as a new CSV file for further analysis.","archived":false,"fork":false,"pushed_at":"2024-10-21T17:54:03.000Z","size":2121,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T01:15:50.938Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Compcode1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-10-21T17:43:07.000Z","updated_at":"2024-10-21T17:54:06.000Z","dependencies_parsed_at":"2024-10-23T01:00:25.950Z","dependency_job_id":null,"html_url":"https://github.com/Compcode1/depression-dataset","commit_stats":null,"previous_names":["compcode1/depression-dataset"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Compcode1/depression-dataset","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Compcode1%2Fdepression-dataset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Compcode1%2Fdepression-dataset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Compcode1%2Fdepression-dataset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Compcode1%2Fdepression-dataset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Compcode1","download_url":"https://codeload.github.com/Compcode1/depression-dataset/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Compcode1%2Fdepression-dataset/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273858855,"owners_count":25180771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"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":[],"created_at":"2025-03-18T01:15:54.163Z","updated_at":"2026-02-15T19:09:17.904Z","avatar_url":"https://github.com/Compcode1.png","language":null,"readme":"The goal of this small project was to expand a medical dataset by adding a new column named Depression based on predefined medical and exam score conditions. The expanded dataset was then saved as a new CSV file for further analysis.\n\nKey Steps:\nDataset Import:\nThe dataset was successfully imported from an external source using the requests library to fetch the raw CSV file from a GitHub repository. The dataset was read into a pandas DataFrame for further processing.\n\nDepression Column Addition:\nA new column Depression was added to the dataset, and values were assigned based on the following rules:\n\n25% of individuals with Heart Disease were assigned depression.\n25% of individuals with Diabetes were assigned depression.\n25% of individuals with Cancer were assigned depression.\n40% of individuals with Stroke were assigned depression.\n30% of individuals with Exam Score 47 or below were assigned depression.\n5% of the remaining population (those not fitting the above categories) were randomly assigned depression.\nCSV Export:\nThe modified dataset, now containing the Depression column, was saved as a new CSV file (depression_dataset.csv) for further use or analysis.\n\nReport:\nThe first 3 rows of the modified dataset were displayed to verify the changes, and the total percentage of individuals with depression in the dataset was calculated and reported.\n\nInsights:\nThis project expands the dataset by incorporating mental health (depression) as a key factor based on co-occurrence with other medical conditions and performance indicators (e.g., exam scores).\nThe added Depression column can now be used for further exploratory data analysis (EDA) or machine learning models to understand its impact on health outcomes.\n\nConclusion:\nThe project successfully enhanced the dataset with a new feature, making it more comprehensive for future analysis. \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompcode1%2Fdepression-dataset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompcode1%2Fdepression-dataset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompcode1%2Fdepression-dataset/lists"}