Skip to content

Conversation

@vsaravind01
Copy link
Collaborator

Description

  • Added new merge primitive (merge.py) for merging multiple CSV datasets into a single dataset.
  • Created comprehensive unit tests in test_merge.py to validate merging functionality, including tests for various scenarios.

Type of change

Please check the option that is related to your PR.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
    • In this case, we recommend to discuss your modification on GitHub issues before creating the PR
  • Documentations (modification for documents)

Checklist

  • Run lint.sh and ensure that it passes (Use ./lint.sh --fix to fix formatting issues automatically)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New unit tests pass locally with my changes
  • I have checked my code and corrected any misspellings

- Introduced a new module `merge.py` for merging multiple CSV datasets into a single dataset.
- Implemented the `_merge_csv` function to handle the merging logic and added a `merge` function to facilitate user input.
- Created comprehensive unit tests in `test_merge.py` to validate merging functionality, including tests for various scenarios such as merging two or more files, handling string inputs, preserving column order, and managing empty dataframes.
- Added error handling for unsupported file types and missing datastore configurations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants