new_df.to_csv("data.csv",index=False) #if want to transpose and save it then new_df.T.to_csv("data.csv",index=False) #If this works, you can buy me a coffee. # https://www.buymeacoffee.com/eyolve