title: Invalid literal for int() with base 10: '2016-04-22'
body: <p>This error is killing me and I'm hoping some of you can help.</p>
  
  <p>To start I am processing amazon order reports for a client.</p>
  
  <p>I'm pulling out the order dates which consist of the usual YYYY-MM-DD H:M:S plus the timezone code. The datetimes are going into a list and I'm iterating over the list like so:</p>
  
  <pre><code>temps = list()
  for date_time in date_times:
      temps.append(str(date_time).split('T'))
  </code></pre>
  
  <p>Then I'm iterating through the split up date times and appending each to a separate list.</p>
  
  <pre><code>dates = list()
  times = list()
  for temp in temps:
      dates.append(temp[0])
      times.append(temp[1])
  </code></pre>
  
  <p>In my code, I keep getting this error:</p>
  
  <pre><code>invalid literal for int() with base 10: '2016-04-22'
  </code></pre>
  
  <p>I know this happens when trying to convert a string or empty string to an <code>int</code> however, all I'm doing is appending the damn thing to a list. What is stranger is that this script has been running for over a month without a problem, so I'm at a loss at this point as to why it started doing this suddenly.</p>
  
  <p>The script is on pythonanywhere and is set to run automatically with the necessary packages installed within a virtualenv so everything else about the setup is static. Any help is appreciated.</p>
  
  <p>EDIT: Here's the mvce. Apologies for not providing one initially.
  You can get the <a href="http://www.fileconvoy.com/dfl.php?id=geb9d53c5a480d3069998187956412a53dd09159f4" rel="nofollow">files I'm using from this link.</a> They perform as their names suggest. <code>good.txt</code> parses fine and <code>bad.txt</code> throws the error. Use <code>scratchpad.py</code> to parse the text files. The contents of the two text files are normally read into memory directly from the Amazon servers and processed from there. The files at the above link are downloaded directly from Amazon and all I've done is removed non-essential information from them.</p>
  
  <p>Here is the stack traceback:</p>
  
  <pre><code>    Traceback (most recent call last):
    File "/home/jason/.virtualenvs/sw/lib/python3.4/site-packages/IPython/core/interactiveshell.py", line 2885, in run_code
      exec(code_obj, self.user_global_ns, self.user_ns)
    File "&lt;ipython-input-18-4d933b0787fe&gt;", line 1, in &lt;module&gt;
      f = parse_report('/home/jason/Desktop/bad.txt')
    File "&lt;ipython-input-17-420ad5606095&gt;", line 57, in parse_report
      report.loc[:, 'purchase-date'] = dates
    File "/home/jason/.virtualenvs/sw/lib/python3.4/site-packages/pandas/core/indexing.py", line 115, in __setitem__
      self._setitem_with_indexer(indexer, value)
    File "/home/jason/.virtualenvs/sw/lib/python3.4/site-packages/pandas/core/indexing.py", line 473, in _setitem_with_indexer
      setter(labels[0], value)
    File "/home/jason/.virtualenvs/sw/lib/python3.4/site-packages/pandas/core/indexing.py", line 416, in setter
      s._data = s._data.setitem(indexer=pi, value=v)
    File "/home/jason/.virtualenvs/sw/lib/python3.4/site-packages/pandas/core/internals.py", line 2734, in setitem
      return self.apply('setitem', **kwargs)
    File "/home/jason/.virtualenvs/sw/lib/python3.4/site-packages/pandas/core/internals.py", line 2710, in apply
      applied = getattr(b, f)(**kwargs)
    File "/home/jason/.virtualenvs/sw/lib/python3.4/site-packages/pandas/core/internals.py", line 585, in setitem
      values, value = self._try_coerce_args(self.values, value)
    File "/home/jason/.virtualenvs/sw/lib/python3.4/site-packages/pandas/core/internals.py", line 1929, in _try_coerce_args
      other = np.array(other, dtype='i8')
  ValueError: invalid literal for int() with base 10: '2016-04-22'
  </code></pre>
  
  <p>EDIT #2:
  <code>pandas = '0.17.0'</code></p>