Debugging How to remove Line terminator from a file and save without it in python language?

Debugging How to remove Line terminator from a file and save without it in python language?,debugging,Debugging,When I am reading a CSV file, it is producing NAN rows in between the actual data (i.e. rows). When I read the file with line-terminator as "\n", the data-frame structure looks fine, the way I want. Could anyone explain what causes line-terminator to play a part while saving/reading the file? How to remove line-terminator permanently? Before line-terminator is added enter image description here After line-terminator is added enter image description here Thanks

When I am reading a CSV file, it is producing NAN rows in between the actual data (i.e. rows). When I read the file with line-terminator as "\n", the data-frame structure looks fine, the way I want. Could anyone explain what causes line-terminator to play a part while saving/reading the file? How to remove line-terminator permanently?

Before line-terminator is added enter image description here

After line-terminator is added enter image description here

Thanks