I have a long matrix (say A) with 10,000 rows and 2 columns in an excel file.
I need to copy each column in separate text files (say A0.txt, A1.txt);
I did the following
A0 = open("A0.txt", "w+")
A1 = open("A1.txt", "w+")
A0.write(A.iloc[:,0])
A1.write(A.iloc[:,1])
but the error is
TypeError: write() argument must be str, not Series
then, how can I write the series?