title: Read all csv files in directory
body: <p>I have CSV files in directory and I want to open each one of them and read the first column. Here is my code:</p>
  
  <pre><code>directory = os.path.join("c:\\","/Users/user/My Documents/test/")
   for root,dirs,files in os.walk(directory):
      for file in files:
             f = open(file, 'r')
             reader = csv.reader(f)
             for row in reader:
                  print(row[0])
  </code></pre>
  
  <p>When I run it , I got an error :</p>
  
  <pre><code>FileNotFoundError: [Errno 2] No such file or directory : 'file1.csv'
  </code></pre>
  
  <p>any idea why?</p>