Skip to content

Conversation

berinhard
Copy link
Contributor

@berinhard berinhard commented Oct 24, 2016

@turicas I didn't add tests yet and I'm opening this PR just to make sure if you're ok with this small change on the API would fix #208. Reference on python doc for CSV reader params.

The usage would be:

data = rows.import_from_csv(fd, fmtparams={'delimiter': ';'})

What do you think? If you're ok, I can add tests to this.

PS.: with this change, the old tests keep passing =)

@turicas
Copy link
Owner

turicas commented Feb 20, 2017

@berinhard thanks for the PR and sorry for so long!
Do you think the best option would be use an inner dict to have formatting parameters?
I think it would be easier for the user if we have delimiter and other parameters just as csv.reader does. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

import_from_csv doesn't respect CSV default fmtparams overwriting
2 participants