title: Unable to lowercase the header of csv file
body: <p>I'm trying to make the first row/header lowercase, in multiple csv files in a directory using python. The code and error are below. Is there any way to fix the code or some other way?</p>
  
  <pre><code>import csv
  import glob
  
  path = (r'C:\Users\Documents')
  
  for fname in glob(path):
      with open(fname, newline='') as f:
          reader = csv.reader(f)
          row1 = next(reader)
          for row1 in reader:
              data = [row1.lower() for row1 in row1]
              os.rename(row1, data)
  </code></pre>
  
  <p>The error is:</p>
  
  <pre class="lang-none prettyprint-override"><code>TypeError: rename: src should be string, bytes or os.PathLike, not list
  </code></pre>