title: TypeError: 'module' object is not callable (datetime)
body: <p>I have a piece of code that i'm trying to run here :</p>
  <pre><code>data=pd.read_csv(&quot;../Generated Data/atp_data.csv&quot;)
  data.Date = data.Date.apply(lambda x:datetime.datetime.strptime(x, '%m/%d/%Y'))
  
  
  
  beg = datetime(1,1,2008)
  end = data.Date.iloc[-1]
  indices = data[(data.Date&gt;beg)&amp;(data.Date&lt;=end)].index
  </code></pre>
  <p>However, everytime i do, i am getting this error:</p>
  <pre><code>    beg = datetime(1,1,2008)
  TypeError: 'module' object is not callable
  </code></pre>
  <p>Can anyone solve this?</p>