title: how to change the data type date object to datetime in python?
body: <p>In a train data set, datetime column is an object . First row of this column : 2009-06-15 17:26:21 UTC . I tried splitting the data</p>
  
  <pre><code>train['Date'] = train['pickup_datetime'].str.slice(0,11)
  
  train['Time'] = test['pickup_datetime'].str.slice(11,19)
  </code></pre>
  
  <p>So that I can split the Date and time as two variables and change them to datetime data type. Tried lot of methods but could not get the result.</p>
  
  <pre><code> train['Date']=pd.to_datetime(train['Date'], format='%Y-%b-%d')
  </code></pre>
  
  <p>Also tried spliting the date,time and UTC</p>
  
  <pre><code>train['DateTime'] = pd.to_datetime(train['DateTime'])
  </code></pre>
  
  <p>Please suggest a code for this. I am a begginer.</p>
  
  <p>Thanks in advance</p>