title: Convert data type series to datetime
body: <p>I have a column that is a Series and I want to convert to a datetime format. This particular column of my data frame looks like below:</p>
  
  <pre><code>x
  Aug 1, 2019 7:20:04 AM
  Aug 1, 2019 7:20:14 AM
  Aug 1, 2019 7:20:24 AM
  Aug 1, 2019 7:20:34 AM
  </code></pre>
  
  <p>I've seem some answers here and I tried to adapt my code accordingly.</p>
  
  <pre><code>datetime.datetime.strptime(df["x"],'%b %d, %Y %H:%M:%S %a').strftime('%d/%m/%Y %H:%M:%S')
  </code></pre>
  
  <p>But I get the following error: </p>
  
  <blockquote>
    <p>strptime() argument 1 must be str, not Series</p>
  </blockquote>
  
  <p>For this reason, I tried to convert to string using the following: </p>
  
  <pre><code>df['x'] = df['x'].apply(str)
  df['x'] = df['x'].to_string()
  df['x'] = df['x'].astype(str)
  </code></pre>
  
  <p>But it does not work.</p>