Writing in csv file

each line in table
it prints five times in csv file

Hi tharun,
First make sure your dataframe is correct (it should be in the desired format).
Then use df.to_csv("filename.csv", index=False) this command to convert into csv file.