Skip to content
Advertisement

Tag: csvwriter

How to delete a particular column in csv file without pandas library

I am trying to delete particular columns in csv file. CSV file: I am trying to delete Entire column having column header “Department” and “Allocation”. My code : My output: Expected output: We cannot gaurantee Department and Allocation will be in column header position “3” and “4”. thats y am using iteration through length of row Answer In this case,

Advertisement