Skip to content
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

Use the CSV Dialect to read/write data using... pandas #81

Open
dalonsoa opened this issue Oct 1, 2024 · 0 comments
Open

Use the CSV Dialect to read/write data using... pandas #81

dalonsoa opened this issue Oct 1, 2024 · 0 comments
Labels
enhancement New feature or request Hacktoberfest
Milestone

Comments

@dalonsoa
Copy link
Collaborator

dalonsoa commented Oct 1, 2024

Problem

The CSV Dialect implemented in #2 is only useful if it is used to inform the underlying reader - in this case, pandas, how to read and write the data.

Solution

Assuming we have a validated CSV Dialect - see #2 - use it to pass the relevant information to panda's read_csv and to_csv functions. Mind that some of the settings of the CSV Dialog might not have a matching argument in those functions. Those should be ignored.

If csv_options are passed by the user when reading or writing that contradict the dialect used, those should be used instead, the Dialect metadata updated in the file AND a warning printed to inform the user about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Hacktoberfest
Projects
None yet
Development

No branches or pull requests

1 participant