title: Importing a file using only part of the file name in Python
body: <p>I am trying to import a file , where the part of the changes daily and randomly. Current date is the part of the file name, but this is already taken care of. The last part of the file name has numbers that change at random. How do I make sure that the last part is ignored?
  Here's the current line:</p>
  <pre class="lang-py prettyprint-override"><code>data = pd.read_csv(yesterday.strftime('I:\Example\import\Example_NEW_%Y-%m-%d-VARIABLE NUMBERS HERE.csv'))
  </code></pre>
  <p>The file for today is called:</p>
  <pre class="lang-none prettyprint-override"><code>Example_NEW_2022-06-20-00-00-48
  </code></pre>
  <p>Tomorrow this could be:</p>
  <pre class="lang-none prettyprint-override"><code>Example_NEW_2022-06-21-00-00-13
  </code></pre>