Processing a CSV file and I can't avoid the header #351
Unanswered
alanwilter
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building a program to copy files given in
file_pathcolumn of a CSV file.This is main part of code:
In my
test.csv, I have 3 lines: 1 header and 2 rows. When debugging my codevscode,total_rowsis correct (I see 2), but no matter what I do withstart_position.set_line(2);the loop always start from the very beginning of therdrand it will print:Source file not found at path: file_path(and 3/3 !):I'm open for suggestions, certainly there's a smarter way of doing so, I'm just a beginner in rust, but keep in mind that my input CSV won't be Giga big and I do want to have the
tqdmto show a progress bar rather than just iteration speed.Beta Was this translation helpful? Give feedback.
All reactions