{"id":19730253,"url":"https://github.com/bugdaryan/intro2ds_final","last_synced_at":"2026-04-20T14:06:31.967Z","repository":{"id":113576822,"uuid":"441893480","full_name":"bugdaryan/intro2ds_final","owner":"bugdaryan","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-26T13:10:10.000Z","size":561,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-10T17:48:47.654Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/bugdaryan.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":"2021-12-26T13:08:59.000Z","updated_at":"2021-12-26T13:10:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"570b19f5-128a-4e76-bac5-49d7c86409b2","html_url":"https://github.com/bugdaryan/intro2ds_final","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugdaryan%2Fintro2ds_final","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugdaryan%2Fintro2ds_final/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugdaryan%2Fintro2ds_final/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bugdaryan%2Fintro2ds_final/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bugdaryan","download_url":"https://codeload.github.com/bugdaryan/intro2ds_final/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241055886,"owners_count":19901674,"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","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":"2024-11-12T00:15:41.638Z","updated_at":"2026-04-20T14:06:26.948Z","avatar_url":"https://github.com/bugdaryan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Final project for intro to DS subject.\n\nThis is the repo for python implementation of data cleaning and splitting a dataset.\n\nThe data that is used is `data.csv` file.\n\n## Data cleaning\n\nHere we drop column if it passes one of the conditions\n- There is only one unique number in column.\n- Number of missing values is higher than 80% of data size.\n- Column contains strings and number of unique values is more than 60.\n\n\n## Column type detection\n\nHere we identidy categorical and numerical columns as follows\n- If a column contains only numbers and its number of unique values is more than 60, it is identified as numeric.\n- Otherwise, it is identified as categorical.\n\n\n## Missing values\n\nHere we go over the numeric columns, and fill missing values with the mean of the column.\n\n\n## Categorical preprocessing\n\nAs we have a lot of categorical values, and some of them has high cardinality, we keep only the top 70% of categorical values, and assign `Other` to the rest.\n\n## Dummy encoding\n\nWe go over the categorical columns and apply dummy encoding to all of them.\n\n## Splitting\nWe split the data by 0.8(train)/0.2(test) and save them in train.csv, test.csv files","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugdaryan%2Fintro2ds_final","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbugdaryan%2Fintro2ds_final","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbugdaryan%2Fintro2ds_final/lists"}