replace columns in texfile python -


I have a .txt file with multiple columns, I want to change the first column for the second column. I'm trying the following:

  JD [] is # data for which I want to change the first column of the file. ('Filed' as 'filed' ('filed file', 'R') as F: print f.readline (). Rstrip for value ('\ n'), line in zip (JD , F) element = line.split () A = format (value, element [1:]) np.savetxt (a)  


Comments