I need to write the extracted data in a CSV file.
The values of the column that I have highlighted are taken from each row, whereas the other column values are extracted from PDF. I am entering the data once all the process is done. So I AM facing the error that as the first two values are in for each while writing the data, at last, it gives me only the last value of each, not each value. How to pass the each value to the CSV file after all the process is done