title: How to define the first column as names in pd.read_csv
body: <p>I fail to read/insert the first column of csv file, I have already set the names in the csv file, although, if I type as name=['...','...' etc], python will set them again, and I will end up having the names 2 times, I want to implement the data from the csv into names of pd.read_csv.</p>
  
  <pre><code>    import pandas as pd
      import tkFileDialog
      import numpy as np
      import warnings
      warnings.filterwarnings('ignore')
  
      rating=tkFileDialog.askopenfilename()
      df = pd.read_csv(rating, sep='\t')
      print df.head()
  
  
      movies=tkFileDialog.askopenfilename()
      movie_titles=pd.read_csv(movies)
      print movie_titles.head
  
      df=pd.merge(df,movies,on='movieId')
      print df.head()
  </code></pre>
  
  <p>And the error is:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Users/Umer Selmani/Desktop/MP2/test panda.py", line 16, in &lt;module&gt;
      df=pd.merge(df,movies,on='movieId')
    File "C:\Users\Umer Selmani\Desktop\MP2\venv\lib\site-packages\pandas\core\reshape\merge.py", line 47, in merge
      validate=validate)
    File "C:\Users\Umer Selmani\Desktop\MP2\venv\lib\site-packages\pandas\core\reshape\merge.py", line 480, in __init__
      right = validate_operand(right)
    File "C:\Users\Umer Selmani\Desktop\MP2\venv\lib\site-packages\pandas\core\reshape\merge.py", line 1752, in validate_operand
      'a {obj} was passed'.format(obj=type(obj)))
  TypeError: Can only merge Series or DataFrame objects, a &lt;type 'unicode'&gt; was passed
  </code></pre>