

I was able to edit one file (and add headers) using this code: headerList = ĭata.to_csv("Spm04A3_00258_00001.csv", header=headerList, index=False)ĭata2 = pd.read_csv("Spm04A3_00258_00001.csv")

In order to process these data files in a different piece of software, I need to convert them into. They are the raw data files that were received from a recent scattering trip. The data files consist of X-ray scattering data with three columns ( scattering vector, intensity, and sqrt(intensity). dat files look like this: % Filename : Spm04A1_00288_00001.tif I am struggling to write a for loop to convert approximately 100.
