Note that there are some explanatory texts on larger screens.

plurals
  1. POPandas: date_range error
    text
    copied!<p>I'm getting an error using pandas <code>date_range</code> function. I've given the trace below, and can provide more context, but it seems like something I'm really going to have to dig into myself to solve. </p> <p>So what I'd like to know is if there's a way to get at the source for the files mentioned in the trace, specifically <code>datetime.pyx</code>, or wherever the Timestamp class is defined - I can't seem to find it. I'm pretty green with Python and don't know my way around packages and sources very well, but I'm hoping that if I can dig a little deeper I'll be able to shed some light on this.</p> <pre><code>&gt;&gt;&gt; d=process_files(args, options, False) Processing file K2.csv Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "/tmp/py7041Jtp.py", line 158, in process_files File "/tmp/py7041Jtp.py", line 81, in process_csv File "/usr/local/lib/python2.7/dist-packages/pandas-0.8.1-py2.7-linux-x86_64.egg/pandas/tseries/index.py", line 1317, in date_range freq=freq, tz=tz, normalize=normalize, name=name) File "/usr/local/lib/python2.7/dist-packages/pandas-0.8.1-py2.7-linux-x86_64.egg/pandas/tseries/index.py", line 176, in __new__ tz=tz, normalize=normalize) File "/usr/local/lib/python2.7/dist-packages/pandas-0.8.1-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) </code></pre>
 

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