title: How do I convert objects to datetime in a Pandas dataframe?
body: <p>I have the following code to import from a CSV file</p>
  
  <pre><code>    data = pd.read_csv(("dados_meteo.csv"),\
                 names=['POM','DTM','RNF','WET','HMD','TMP','DEW','INF'],\
                 parse_dates = ['DTM'])
  </code></pre>
  
  <p>then</p>
  
  <pre><code> data.dtypes
  </code></pre>
  
  <p>returns</p>
  
  <pre><code>POM     object
  DTM     object
  RNF    float64
  WET    float64
  HMD    float64
  TMP    float64
  DEW    float64
  INF      int64
  dtype: object
  </code></pre>
  
  <p>After using</p>
  
  <pre><code>data['DTM'] = data['DTM'].astype('datetime64[ns]')
  </code></pre>
  
  <p>The DTM keeps the same type. Could you help me?</p>
  
  <p>Thank you</p>