title: Subset of Dataframe based on substring (python)
body: <p>I have a pandas dataframe called Data filled with dates. An example date might look like:  "2015-05-10 23:45:00". I want to look at the data in January only, so I want:</p>
  
  <pre><code>Data= Data[:][5:7]=="01"
  </code></pre>
  
  <p>This doesn't work though. </p>
  
  <p>TDLR, wondering how to find get subset of a dataframe based on a substring. </p>
  
  <p>Thanks!</p>