I have pandas DataFrame like this
X Y Z Value 0 18 55 1 70 1 18 55 2 67 2 18 57 2 75 3 1
Late to the party: Try this>
base_filename = 'Values.txt' with open(os.path.join(WorkingFolder, base_filename),'w') as outfile: df.to_string(outfile) #Neatly allocate all columns and rows to a .txt file