title: How do I remove/strip the row number from a variable in Python
body: <pre><code>import csv
  import pandas as pd
  from datetime import datetime,time,date
  from pandas.io.data import DataReader
  
  fd = pd.read_csv('c:\\path\\to\\file.csv')
  
  fd.columns = ['Date','Time']
  
  datex = fd.Date
  timex = fd.Time
  
  timestr = datetime.strptime ( str(datex+" "+timex) , "%m/%d/%Y %H:%M")
  </code></pre>
  
  <p>So, what I'm trying to do is pass columns Date and Time to datetime.  There are two columns, date and time containing, obviously, the date and time.  But when I try the above method, I receive this error:</p>
  
  <pre><code>\n35760 08/07/2015 04:56\n35761 08/07/2015 04:57\n35762 08/07/2015 04:58\n35763 08/07/2015 04:59\ndtype: object' does not match format '%m/%d/%Y %H:%M'
  </code></pre>
  
  <p>So, how do I either strip or remove \nXXXXX from datex and timex?  Or otherwise match the format?</p>