title: Trying to filter columns using the wildcard *
body: <p>I am trying to create a new dataframe object from an existing dataset that contains multiple similar columns that start with &quot;shape_&quot; I am trying to use the wildcard (*) but I am getting an error.</p>
  <pre><code>new_df = df[['date', 'lat', 'long', 'shape_*']]
  </code></pre>
  <p>from all the examples I have seen this should work but I am getting the error:</p>
  <blockquote>
  <p>KeyError: &quot;['shape_*'] not in index&quot;</p>
  </blockquote>