Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>For you convenience i copied <code>pandas.lib._string_to_dts</code> function code below. Based on your traceback, this is the one throwing the exception.</p> <pre><code>cdef inline _string_to_dts(object val, pandas_datetimestruct* dts): cdef: npy_bool islocal, special PANDAS_DATETIMEUNIT out_bestunit int result if PyUnicode_Check(val): val = PyUnicode_AsASCIIString(val); result = parse_iso_8601_datetime(val, len(val), PANDAS_FR_ns, NPY_UNSAFE_CASTING, dts, &amp;islocal, &amp;out_bestunit, &amp;special) if result == -1: raise ValueError('Unable to parse %s' % str(val)) </code></pre> <p>To me it looks like you provide input to <code>pandas.date_range</code> which can not be parsed to a date and your code in <code>process_csv</code> throws a <code>ValueError</code> exception like in the example below.</p> <pre><code>&gt;&gt;&gt; import pandas &gt;&gt;&gt; pandas.date_range('hello') Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File ".../lib/python2.7/site-packages/pandas-0.8.2.dev_90842ba-py2.7-linux-x86_64.egg/pandas/tseries/index.py", line 1317, in date_range freq=freq, tz=tz, normalize=normalize, name=name) File "../lib/python2.7/site-packages/pandas-0.8.2.dev_90842ba-py2.7-linux-x86_64.egg/pandas/tseries/index.py", line 176, in __new__ tz=tz, normalize=normalize) File ".../lib/python2.7/site-packages/pandas-0.8.2.dev_90842ba-py2.7-linux-x86_64.egg/pandas/tseries/index.py", line 254, in _generate start = Timestamp(start) File "datetime.pyx", line 87, in pandas.lib.Timestamp.__new__ (pandas/src/tseries.c:26892) File "datetime.pyx", line 511, in pandas.lib.convert_to_tsobject (pandas/src/tseries.c:32019) File "datetime.pyx", line 640, in pandas.lib._string_to_dts (pandas/src/tseries.c:33452) ValueError: Unable to parse hello </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload