title: How to read a csv file by eliminating the newline character?
body: <p>I have a csv file in the format:</p>
  
  <pre><code>       text                    label 
  it was incredible!!            1
  the politician was exhausted     0
  'and so was little Sebastian!'   0
  </code></pre>
  
  <p>I am trying reading it using pandas:</p>
  
  <pre><code>train = pd.read_csv("myfile.csv", header = 0, delimiter = "\t", quoting = 3)
  print(train.shape)
  </code></pre>
  
  <p>Printing the shape of train gives me double the number of lines orignally present in the csv file.
  The problem I found is that the alternate lines in the data frame <code>train</code> are being split by newline character so that <code>train["text"][0]</code> gives:</p>
  
  <blockquote>
    <p>"it was incredible!!"</p>
  </blockquote>
  
  <p><code>train["text"][1]</code> gives:</p>
  
  <blockquote>
    <p>"</p>
  </blockquote>
  
  <p>Similar is the result for every alternate line pairs thus resulting in the double of original size. I figured out the possible reason for it could be that before writing my list of tuples, i.e. <code>mylist = [(text, '1'), (text, '0')..]</code> to the csv file, printing <code>mylist[0]</code> gives: </p>
  
  <blockquote>
    <p>('it was incredible \n', '1')</p>
  </blockquote>
  
  <p>Similarly, mylist[2] would give:</p>
  
  <blockquote>
    <p>(" 'and so was little Sebastian! '\n", '0')</p>
  </blockquote>
  
  <p>i.e. a '\n' is somehow appended at the end of each text. Is there any way to prevent these line splits by eliminating '\n' character?</p>