-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DF] Extend parsing capabilities of CSV data source #15045
base: master
Are you sure you want to change the base?
Conversation
Starting build on |
Starting build on |
Test Results 18 files 18 suites 4d 0h 2m 50s ⏱️ Results for commit 7d0c948. ♻️ This comment has been updated with latest results. |
A new ROptions struct bundles all the different user-options for parsing the CSV file.
Newly supported options: - Left/right trimming - Skipping of a given number of header/footer lines - Comment character to skip lines / line remainders - Impose column names Brings the CSV datasource closer to the Pandas dataframe capabilities.
Starting build on |
Build failed on windows10/default. Failing tests: |
This PR looks great. @jblomer would you prefer I wait for all the items in the checklist to be addressed to review it or should I proceed? |
Thank you, @dpiparo. Let me address the PyROOT issue first, which I haven't understood yet. |
This Pull request:
Adds more advanced options to parse CSV files:
It brings the CSV datasource closer to the Pandas CSV parsing capabilities and should avoid in many cases the need for users to implement custom text file parsing code.
Checklist:
FromCSV
that uses named arguments for all the new options inRCsvDS::ROptions