I have a pandas dataframe that looks like this:
X Y Z Value
0 6.196133e+06 2.321880e+06 1356.439 0.01
1 6.196155e+06 2.321867e+06 1347.363 0.01
2 6.196176e+06 2.321854e+06 1338.229 0.01
3 6.196197e+06 2.321841e+06 1332.272 0.01
4 6.196218e+06 2.321828e+06 1326.691 0.01
How can I write the data to a .csv (or .txt) file without row indices, so that the columns are tab (or space) delimited, and the header is displayed as follows:
title = "dataset test"
variables = "X", "Y", "Z", "Value"
zone t = "Data Field",i = 134, j = 293, k = 5, f=point
6.196133e+06 2.321880e+06 1356.439 0.01
6.196155e+06 2.321867e+06 1347.363 0.01
6.196176e+06 2.321854e+06 1338.229 0.01
6.196197e+06 2.321841e+06 1332.272 0.01
6.196218e+06 2.321828e+06 1326.691 0.01
FYI: The header is Tecplot software header.