-
Notifications
You must be signed in to change notification settings - Fork 42
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
read csv without header #84
Comments
Good question, there isn't currently. PR welcome. A couple lines of code are needed to ensure |
Thanks @redstreet for the reply .. during my search trough the examples and code I also found "prepare_table()" and adding 2 lines in there seams to do the trick without altering any other internals def prepare_table(self, rdr):
rdr = etl.setheader(rdr, ['Date', 'Payee', ['etc'])
return rdr Now I'm reading again in the bank documentation and try to understand all the fields to figure out which I can use. And probably some of the fields can combined to be used in the transaction description and that would also be done in the prepare_table() i guess ... |
Cool, that's a good place for that header line! Even better would be in prepare_raw-file(). Yes, prepare_table is meant exactly for the types of operations you described. Search for that across the repo to view examples that should do what you're trying to do. BTW, this is probably what you are already doing but you can simply define those two methods in your own importer. They're meant to be overridden that way. |
trying to do some bookkeeping again ... and today I figured out that I missed an entry ... after some digging around I found out that setheader replaces the first row ... and then I found this issue back .. so adding what I learned today. etl.pushheader seams to do the job ... (yes using my own importer ... and start to use prepare_raw_file for etl.pushheader() ) |
Is there somewhere an option to define column names for csv files that don't have a header?
The text was updated successfully, but these errors were encountered: