{"id":25016715,"url":"https://github.com/lexx0001/csvmerge","last_synced_at":"2025-03-30T07:43:18.716Z","repository":{"id":194949275,"uuid":"691674885","full_name":"lexx0001/csvMerge","owner":"lexx0001","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-11T17:40:55.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T09:54:09.543Z","etag":null,"topics":["csv","csv-merge","csv-merge-script"],"latest_commit_sha":null,"homepage":"","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/lexx0001.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}},"created_at":"2023-09-14T16:46:23.000Z","updated_at":"2023-11-13T12:21:51.000Z","dependencies_parsed_at":"2023-11-11T18:31:02.778Z","dependency_job_id":"44bd7851-9f07-4e25-8c76-17ad61b7ce70","html_url":"https://github.com/lexx0001/csvMerge","commit_stats":null,"previous_names":["lexx0001/csvmerge"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexx0001%2FcsvMerge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexx0001%2FcsvMerge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexx0001%2FcsvMerge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexx0001%2FcsvMerge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lexx0001","download_url":"https://codeload.github.com/lexx0001/csvMerge/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246290579,"owners_count":20753724,"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":["csv","csv-merge","csv-merge-script"],"created_at":"2025-02-05T09:54:11.677Z","updated_at":"2025-03-30T07:43:18.695Z","avatar_url":"https://github.com/lexx0001.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# csvMerge\n\nDocumentation for Data Processing Script\n========================================\n\nThis script is designed to read multiple CSV files from a specified folder, perform\ncalculations on specific columns, and then merge the resulting data frames into a single\nCSV file.\n\nDependencies:\n-------------\n- pandas\n- glob\n\nUsage:\n------\n1. Place the CSV files you wish to process in the folder specified in the `csv_files` variable.\n2. Run the script.\n\nModules:\n--------\n- pandas (as pd)\n- glob\n\nVariables:\n----------\n- csv_files: List of paths to CSV files that need to be processed.\n- data_frames: List to store individual processed data frames before merging.\n\nFunctions and Loops:\n--------------------\n1. Loop through each CSV file defined in `csv_files`.\n    - Read the CSV file into a DataFrame `df`.\n    - Perform subtraction between columns with indices 2 and 3 to create a new column 'diff'.\n    - Keep only the 'diff' column and the column with index 5.\n    - Append this new DataFrame to `data_frames`.\n\n2. Merge all the individual data frames stored in `data_frames` into `merged_df`.\n3. Write `merged_df` into a new CSV file without index and header.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexx0001%2Fcsvmerge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flexx0001%2Fcsvmerge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexx0001%2Fcsvmerge/lists"}