I have a trouble to change the dataframe(float) to string as dat file. My df is bellow. enter image description here
using this code to save the dataframe as txt, np.