title: How to stop writing a blank line at the end of csv file - pandas
body: <p>When saving the data to csv, <code>data.to_csv('csv_data', sep=',', encoding='utf-8', header= False, index = False)</code>, it creates a blank line at the end of csv file.  </p>
  
  <p>How do you avoid that?  </p>
  
  <p>It's got to do with the <code>line_terminator</code> and it's default value is <code>n</code>, for new line.</p>
  
  <p>Is there a way to specify the <code>line_terminator</code> to avoid creating a blank line at the end, or do i need to read the csv file, remove the blank line and save it?</p>
  
  <p>Not familiar with pandas.  Your help will be appreciated, thanks in advance!</p>