title: Pandas reading csv files with partial wildcard
body: <p>I'm trying to write a script that imports a file, then does something with the file and outputs the result into another file.</p>
  
  <p><code>df = pd.read_csv('somefile2018.csv')</code></p>
  
  <p>The above code works perfectly fine. However, I'd like to avoid hardcoding the file name in the code.</p>
  
  <p>The script will be run in a folder (directory) that contains the <code>script.py</code> and several csv files.</p>
  
  <p>I've tried the following:</p>
  
  <p><code>somefile_path = glob.glob('somefile*.csv')</code></p>
  
  <p><code>df = pd.read_csv(somefile_path)</code></p>
  
  <p>But I get the following error:</p>
  
  <p><code>ValueError: Invalid file path or buffer object type: &lt;class 'list'&gt;</code></p>