0

I have a CSV file named x.CSV saved in the folder (C:\Users\HP\Downloads) and I want to add an extra column to it and also know how to open it in python and edit it or just read it in general.

I've tried to do a few things like

import csv
with open('x.csv','rb') as f:
   reader = csv.reader(f)
   for row in reader:
       print (row)

and also quite a few other things but keep getting an error like [Errno 2] No such file or directory: 'x.csv'.

I think I should be able to add the column but the main problem is just accessing the file, editing it and just doing basic things like std, mean etc.

ace 10101
  • 23
  • 6

0 Answers0