{"id":27058469,"url":"https://github.com/shrunga92/5g_qos_data_transformation_python","last_synced_at":"2026-05-19T02:02:13.769Z","repository":{"id":286220622,"uuid":"960598838","full_name":"shrunga92/5G_QoS_Data_transformation_python","owner":"shrunga92","description":"Resource Allocation in 5G Network Service","archived":false,"fork":false,"pushed_at":"2025-04-05T02:46:28.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T19:38:37.261Z","etag":null,"topics":["5g-nr","data-analysis","python"],"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/shrunga92.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":"2025-04-04T18:00:31.000Z","updated_at":"2025-04-05T02:47:35.000Z","dependencies_parsed_at":"2025-04-05T03:34:42.780Z","dependency_job_id":null,"html_url":"https://github.com/shrunga92/5G_QoS_Data_transformation_python","commit_stats":null,"previous_names":["shrunga92/5g_qos_data_transformation_python"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shrunga92/5G_QoS_Data_transformation_python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shrunga92%2F5G_QoS_Data_transformation_python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shrunga92%2F5G_QoS_Data_transformation_python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shrunga92%2F5G_QoS_Data_transformation_python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shrunga92%2F5G_QoS_Data_transformation_python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shrunga92","download_url":"https://codeload.github.com/shrunga92/5G_QoS_Data_transformation_python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shrunga92%2F5G_QoS_Data_transformation_python/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266661974,"owners_count":23964409,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["5g-nr","data-analysis","python"],"created_at":"2025-04-05T12:15:20.780Z","updated_at":"2026-05-19T02:02:13.668Z","avatar_url":"https://github.com/shrunga92.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 5G_QoS_Data_transformation_python\n``` python\nimport pandas as pd\nimport os\n\npwd = os.getcwd()\n\nprint(f'path is {pwd} now ')\n\ndf = pd.read_csv('Quality_of_Service_5G.csv')\ndf\n```\n![image](https://github.com/user-attachments/assets/291586f9-41e4-45d4-98b8-fbd50d4abe64)\n\n## 1. Data Pre-Processing :\n``` python\ndf.info()\n```\n\n![image](https://github.com/user-attachments/assets/a6833d5a-10ce-4bd9-9a77-01247a25114f)\n\n``` python\ndf.isna().sum()\n```\n\n![image](https://github.com/user-attachments/assets/cdb6be41-dc26-4c9f-a2b0-4e61b980fb62)\n\n``` python\ndf.duplicated().sum()\n```\nnp.int64(0)\n\n``` python\ndf['Resource_Allocation'] = df['Resource_Allocation'].str.replace('%','')\ndf\n```\n![image](https://github.com/user-attachments/assets/7cf9f352-f297-43ae-b374-c1ff6a86542c)\n\n``` python\ndf['User_ID'] = df['User_ID'].str.replace('User_','')\ndf\n```\n\n![image](https://github.com/user-attachments/assets/9b5931b2-e01e-43d8-9ed5-44c7e60d7e55)\n\n\n``` python\n# Bandwidth contains 2 units : Kbps and Mbps, where Kbps=1000*Mbps\n# Mbps : Convert to Kbps\n# Kbps : Leave as it is\n\ndef mbps_to_kbps(value):  \n    if 'Mbps' in value:\n        n = float(value.replace(' Mbps',''))\n        return str(n*1000)+' Kbps'\n    else:\n        return value\n\n\ndf['Required_Bandwidth'] = df['Required_Bandwidth'].map(mbps_to_kbps)\ndf['Allocated_Bandwidth'] = df['Allocated_Bandwidth'].map(mbps_to_kbps)\n\ndf['Required_Bandwidth'] = df['Required_Bandwidth'].str.replace(' Kbps','')\ndf['Allocated_Bandwidth'] = df['Allocated_Bandwidth'].str.replace(' Kbps','')\ndf['Latency'] = df['Latency'].str.replace(' ms','')\ndf['Signal_Strength'] = df['Signal_Strength'].str.replace(' dBm','')\ndf\n\n```\n![image](https://github.com/user-attachments/assets/72d5e645-60e8-4ccb-9760-a14c9bc28974)\n\n\n``` python\n#Convert datatypes \ndf['Timestamp'] = pd.to_datetime(df['Timestamp'])\ndf['User_ID'] = df['User_ID'].astype('int')\ndf['Application_Type'] = df['Application_Type'].astype('str')\ndf['Signal_Strength'] = df['Signal_Strength'].astype('int')\ndf['Latency'] = df['Latency'].astype('int')\ndf['Required_Bandwidth'] = df['Required_Bandwidth'].astype('float')\ndf['Allocated_Bandwidth'] = df['Allocated_Bandwidth'].astype('float')\ndf['Resource_Allocation'] = df['Resource_Allocation'].astype('int')\ndf.info()\n```\n![image](https://github.com/user-attachments/assets/02c79674-f56d-4d00-8161-041524bca179)\n\n``` python\ndf.head(10)\ndf.tail()\n\nnew_df = df\nnew_df.to_csv(\"5G_QoS_modified.csv\", index=False)\n```\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshrunga92%2F5g_qos_data_transformation_python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshrunga92%2F5g_qos_data_transformation_python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshrunga92%2F5g_qos_data_transformation_python/lists"}