diff --git a/.gitignore b/.gitignore index ae175ad9a80e9..23db75d7ca195 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,5 @@ doc/source/generated doc/source/_static *flymake* scikits -.coverage \ No newline at end of file +.coverage +pandas/src/cppsandbox.cpp diff --git a/pandas/io/data.py b/pandas/io/data.py index 75c84b272511d..ce4dfd6cca803 100644 --- a/pandas/io/data.py +++ b/pandas/io/data.py @@ -69,8 +69,6 @@ def get_data_yahoo(name=None, start=None, end=None): Returns a DataFrame. """ - from dateutil.relativedelta import relativedelta - start, end = _sanitize_dates(start, end) if(name is None): @@ -79,13 +77,11 @@ def get_data_yahoo(name=None, start=None, end=None): yahoo_URL = 'http://ichart.yahoo.com/table.csv?' - start -= relativedelta(months=1) - url = yahoo_URL + 's=%s' % name + \ - '&a=%s' % start.month + \ + '&a=%s' % (start.month - 1) + \ '&b=%s' % start.day + \ '&c=%s' % start.year + \ - '&d=%s' % end.month + \ + '&d=%s' % (end.month - 1) + \ '&e=%s' % end.day + \ '&f=%s' % end.year + \ '&g=d' + \