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

Preserve original headers when re-exporting #330

Open
viniciusd opened this issue Aug 20, 2019 · 1 comment
Open

Preserve original headers when re-exporting #330

viniciusd opened this issue Aug 20, 2019 · 1 comment

Comments

@viniciusd
Copy link

I currently have the following workflow:

  1. import csv
  2. transform it
  3. re-export it back to csv

However, I noticed all headers are now using snake_case, which is clearly something that rows does in order to allow one to manipulate the rows (also, rows are represented as namedtuples).

Is there a way to preserve the original headers when re-exporting? Does the Table object store that data somehow?

@viniciusd
Copy link
Author

Just checked its source code.

So it neither stores the original headers nor uses them on exporting.

Exporting uses slugs only, as I can see on rows/plugins/utils.py's prepare_to_export function.

Thoughts here?

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

No branches or pull requests

1 participant