{"id":24360421,"url":"https://github.com/dms-codes/read_excel_to_dict","last_synced_at":"2026-05-22T21:34:13.483Z","repository":{"id":169618402,"uuid":"537369815","full_name":"dms-codes/read_excel_to_dict","owner":"dms-codes","description":"Excel to Dictionary Converter This Python script allows you to convert data from an Excel file into a Python dictionary. You can use this script to load data from an Excel spreadsheet and create a dictionary where one column serves as keys, and another column serves as values.","archived":false,"fork":false,"pushed_at":"2023-10-01T10:13:16.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T10:05:41.943Z","etag":null,"topics":["dict","excel","python"],"latest_commit_sha":null,"homepage":"https://github.com/dms-codes/read_excel_to_dict","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/dms-codes.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-09-16T08:24:50.000Z","updated_at":"2025-09-07T20:16:03.000Z","dependencies_parsed_at":"2025-03-12T08:38:34.677Z","dependency_job_id":null,"html_url":"https://github.com/dms-codes/read_excel_to_dict","commit_stats":null,"previous_names":["dms-codes/read_excel_to_dict"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dms-codes/read_excel_to_dict","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Fread_excel_to_dict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Fread_excel_to_dict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Fread_excel_to_dict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Fread_excel_to_dict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dms-codes","download_url":"https://codeload.github.com/dms-codes/read_excel_to_dict/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Fread_excel_to_dict/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33369918,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T12:23:38.849Z","status":"online","status_checked_at":"2026-05-22T02:00:06.671Z","response_time":265,"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":["dict","excel","python"],"created_at":"2025-01-18T21:19:47.014Z","updated_at":"2026-05-22T21:34:13.461Z","avatar_url":"https://github.com/dms-codes.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Excel to Dictionary Converter\n\nThis Python script allows you to convert data from an Excel file into a Python dictionary. You can use this script to load data from an Excel spreadsheet and create a dictionary where one column serves as keys, and another column serves as values.\n\n## Prerequisites\n\nBefore running the script, ensure you have the `pandas` library installed. You can install it using `pip`:\n\n```bash\npip install pandas\n```\n\n## Usage\n\n1. Import the necessary library:\n\n   ```python\n   import pandas as pd\n   ```\n\n2. Load the Excel file using `pd.read_excel`. Replace `'test.xlsx'` with the path to your Excel file:\n\n   ```python\n   df = pd.read_excel('test.xlsx', header=None)\n   ```\n\n   - The `header=None` argument is used to indicate that there are no column headers in the Excel file.\n\n3. Convert the data from the Excel file into a Python dictionary using `dict(zip())`:\n\n   ```python\n   res = dict(zip(df[0], df[1]))\n   ```\n\n   - In this example, the first column (`df[0]`) is used as keys, and the second column (`df[1]`) is used as values in the dictionary.\n\n4. Print or use the resulting dictionary (`res`) as needed:\n\n   ```python\n   print(res)\n   ```\n\n## Example\n\nIn this example, the script loads data from the \"test.xlsx\" Excel file, where the first column contains keys and the second column contains values. It converts this data into a dictionary and prints the result.\n\n## License\n\nThis script is provided under the [MIT License](LICENSE).\n```\n\nYou can customize the script and README.md file to suit your specific Excel file and use case.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdms-codes%2Fread_excel_to_dict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdms-codes%2Fread_excel_to_dict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdms-codes%2Fread_excel_to_dict/lists"}