Hi,

I have a .csv file in an AWS machine i wanted to convert that .csv file to .dat file? Can you please help me?

Thansk,
Swetha. G

Instead of saving the dataframe to .CSV file i used below code to save dataframe into .dat file directly helped me to resolve the question.

import pandas as pd
output_df.to_csv('output_file_name.dat')