title: 'Series' object has no attribute 'to_datetime'
body: <p>I am trying to convert one column str type to datetime type. But when I write the code: </p>
  
  <pre><code>df.timeStamp = df.timeStamp.to_datetime
  </code></pre>
  
  <p>it just tell me </p>
  
  <pre><code>AttributeError: 'Series' object has no attribute 'to_datetime'
  </code></pre>
  
  <p>But when I try </p>
  
  <pre><code>pd.to_datetime(df.timeStamp)
  </code></pre>
  
  <p>it works.</p>
  
  <p>I am new to python and hope someone could explain why it happens.</p>
  
  <p>I appreciate your time!</p>