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
-
I'm building a program to copy files given in
file_path
column 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_rows
is correct (I see 2), but no matter what I do withstart_position.set_line(2);
the loop always start from the very beginning of therdr
and 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
tqdm
to show a progress bar rather than just iteration speed.Beta Was this translation helpful? Give feedback.
All reactions