You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
andto_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.The text was updated successfully, but these errors were encountered: