{"id":19316084,"url":"https://github.com/lahcenezzara/csv-manipulations-python","last_synced_at":"2026-05-15T11:06:30.425Z","repository":{"id":249072661,"uuid":"830507939","full_name":"LahcenEzzara/csv-manipulations-python","owner":"LahcenEzzara","description":"CSV Files Manipulations Python","archived":false,"fork":false,"pushed_at":"2024-07-18T12:19:18.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-06T03:43:28.531Z","etag":null,"topics":["automation","csv","data-cleaning","data-manipulation","data-processing","file-handling","pandas","python","scripts"],"latest_commit_sha":null,"homepage":"https://lahcenezzara.github.io/csv-manipulations-python/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LahcenEzzara.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-07-18T12:12:03.000Z","updated_at":"2024-07-18T12:19:21.000Z","dependencies_parsed_at":"2024-07-18T15:02:16.815Z","dependency_job_id":"c5a980b5-1aa4-4fbf-8452-018df795fdc1","html_url":"https://github.com/LahcenEzzara/csv-manipulations-python","commit_stats":null,"previous_names":["lahcenezzara/csv-manipulations-python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LahcenEzzara%2Fcsv-manipulations-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LahcenEzzara%2Fcsv-manipulations-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LahcenEzzara%2Fcsv-manipulations-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LahcenEzzara%2Fcsv-manipulations-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LahcenEzzara","download_url":"https://codeload.github.com/LahcenEzzara/csv-manipulations-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240418134,"owners_count":19798137,"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":["automation","csv","data-cleaning","data-manipulation","data-processing","file-handling","pandas","python","scripts"],"created_at":"2024-11-10T01:09:49.145Z","updated_at":"2026-05-15T11:06:30.357Z","avatar_url":"https://github.com/LahcenEzzara.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSV Manipulations in Python\n\nThis project demonstrates how to manipulate CSV files using Python. It includes scripts to merge multiple CSV files and to remove duplicates from a CSV file.\n\n## Project Structure\n\n```txt\ncsv-manipulations-python/\n│\n├── csv/ # Folder containing CSV files\n│ ├── data1.csv\n│ ├── data2.csv\n│ └── data3.csv\n│\n├── out/ # Folder for output files\n│ ├── cleaned_output.csv\n│ └── merged_output.csv\n│\n├── src/ # Source code folder\n│ ├── merge_csv_files.py\n│ └── remove_duplicates_from_csv.py\n│\n├── README.md # Project documentation\n└── requirements.txt # Dependencies\n```\n\n\n## Setup\n\n### Prerequisites\n\nMake sure you have Python installed. You can download it from [python.org](https://www.python.org/downloads/).\n\n### Install Dependencies\n\nInstall the required Python packages using `pip`:\n\n```bash\npip install -r requirements.txt\n```\n\n## Usage\n\n### Merging CSV Files\n\nThe `merge_csv_files.py` script merges all CSV files in the `csv` folder into a single file.\n\n**Command:**\n\n```bash\npython src/merge_csv_files.py\n```\n\n**Output:**\n\nThe merged output will be saved to `out/merged_output.csv`.\n\n### Removing Duplicates\n\nThe `remove_duplicates_from_csv.py` script removes duplicates from the specified CSV file.\n\n**Command:**\n\n```bash\npython src/remove_duplicates_from_csv.py\n```\n\n**Output:**\n\nThe cleaned file with duplicates removed will be saved to `out/cleaned_output.csv`.\n\n## Script Details\n\n### `merge_csv_files.py`\n\nThis script reads all CSV files from the specified folder, merges them into a single DataFrame, and saves the merged DataFrame to an output CSV file.\n\n**Function: `merge_csv_files`**\n\n```python\ndef merge_csv_files(folder_path, output_file):\n    \"\"\"\n    Merges all CSV files in the specified folder into a single DataFrame and saves to output_file.\n\n    Parameters:\n    folder_path (str): The path to the folder containing the CSV files.\n    output_file (str): The path to the output CSV file.\n    \"\"\"\n```\n\n### `remove_duplicates_from_csv.py`\n\nThis script removes duplicate rows from the specified CSV file and saves the cleaned DataFrame to an output CSV file.\n\n**Function: `remove_duplicates`**\n\n```python\ndef remove_duplicates(input_file, output_file):\n    \"\"\"\n    Removes duplicates from the specified CSV file and saves the cleaned data to output_file.\n\n    Parameters:\n    input_file (str): The path to the input CSV file.\n    output_file (str): The path to the output CSV file.\n    \"\"\"\n```\n\n## Contributing\n\nIf you would like to contribute to this project, please fork the repository and submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License.\n\n## Copyright\n\n\n\n© 2024 **[Lahcen Ezzara](https://lahcenezzara.github.io)**. All rights reserved.\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flahcenezzara%2Fcsv-manipulations-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flahcenezzara%2Fcsv-manipulations-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flahcenezzara%2Fcsv-manipulations-python/lists"}