title: Python Remove line breaks from CSV file
body: <p>When opening my CSV file in Notepad++ it shows the encoding is ANSI, and the line breaks are showing as LF.  I'm trying to remove these line breaks via python, but have not found a solution.  A couple solutions I've tried:</p>
  <pre><code>with open(csvTable, 'r') as f:
      raw_csv = f.read()
      clean_csv = raw_csv.strip()
  
  with open(csvTable2, 'w') as f:
      f.write(clean_csv)
  </code></pre>
  <p>And:</p>
  <pre><code>data_set = pd.read_csv(data_file,skip_blank_lines=True, encoding='ANSI')
  data_set.to_csv(target_file,index=False)
  </code></pre>
  <p>Can someone point me in the right direction?</p>