This project combines multiple CSV files from a specified directory into a single CSV file, with robust error handling and logging.
- Clone the repository:
git clone https://github.com/your-username/csv_combiner_project.git cd csv_combiner_project
- Install the required packages:
pip install -r requirements.txt
To run the script:
python combine_csv.py --input_dir <directory_with_csv_files> --output_dir <output_directory> --output_file <output_filename>
Example:
python combine_csv.py --input_dir ./example_data --output_dir ./combined --output_file combined_output.csv
Run the tests with:
python -m unittest discover tests
Or using pytest
:
pytest tests/