{"action":"created","issue":{"url":"https://api.github.com/repos/blaze/dask/issues/924","labels_url":"https://api.github.com/repos/blaze/dask/issues/924/labels{/name}","comments_url":"https://api.github.com/repos/blaze/dask/issues/924/comments","events_url":"https://api.github.com/repos/blaze/dask/issues/924/events","html_url":"https://github.com/blaze/dask/issues/924","id":127307046,"number":924,"title":"Passing a list of a list with two column names to dask.read_csv fails with ValueError","user":{"login":"user32000","id":16737006,"avatar_url":"https://avatars.githubusercontent.com/u/16737006?v=3","gravatar_id":"","url":"https://api.github.com/users/user32000","html_url":"https://github.com/user32000","followers_url":"https://api.github.com/users/user32000/followers","following_url":"https://api.github.com/users/user32000/following{/other_user}","gists_url":"https://api.github.com/users/user32000/gists{/gist_id}","starred_url":"https://api.github.com/users/user32000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/user32000/subscriptions","organizations_url":"https://api.github.com/users/user32000/orgs","repos_url":"https://api.github.com/users/user32000/repos","events_url":"https://api.github.com/users/user32000/events{/privacy}","received_events_url":"https://api.github.com/users/user32000/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-18T20:41:57Z","updated_at":"2016-01-21T00:32:20Z","closed_at":null,"body":"```python\r\nimport pandas as pd\r\nimport dask.dataframe as df\r\n\r\n# this works...\r\ndelme1 = pd.read_csv('some_file.txt', delimiter='\\t', parse_dates=[['Datum', 'Zeit']])\r\n\r\n# this does not\r\ndelme2 = df.read_csv('some_file.txt', delimiter='\\t', parse_dates=[['Datum', 'Zeit']])\r\n\r\n---------------------------------------------------------------------------\r\nValueError                                Traceback (most recent call last)\r\n<ipython-input-2-41c1ed8fde3e> in <module>()\r\n----> 1 delme = df.read_csv('some_file.txt', delimiter='\\t', parse_dates=[['Datum', 'Zeit']])\r\n      2 delme\r\n\r\n/Applications/anaconda/lib/python2.7/site-packages/dask/dataframe/io.pyc in read_csv(fn, *args, **kwargs)\r\n    182     kwargs = kwargs.copy()\r\n    183 \r\n--> 184     kwargs = fill_kwargs(fn, args, kwargs)\r\n    185 \r\n    186     # Handle glob strings\r\n\r\n/Applications/anaconda/lib/python2.7/site-packages/dask/dataframe/io.pyc in fill_kwargs(fn, args, kwargs)\r\n    147     kwargs = clean_kwargs(kwargs)\r\n    148     try:\r\n--> 149         head = pd.read_csv(fn, *args, **assoc(kwargs, 'nrows', sample_nrows))\r\n    150     except StopIteration:\r\n    151         head = pd.read_csv(fn, *args, **kwargs)\r\n\r\n/Applications/anaconda/lib/python2.7/site-packages/pandas/io/parsers.pyc in parser_f(filepath_or_buffer, sep, dialect, compression, doublequote, escapechar, quotechar, quoting, skipinitialspace, lineterminator, header, index_col, names, prefix, skiprows, skipfooter, skip_footer, na_values, true_values, false_values, delimiter, converters, dtype, usecols, engine, delim_whitespace, as_recarray, na_filter, compact_ints, use_unsigned, low_memory, buffer_lines, warn_bad_lines, error_bad_lines, keep_default_na, thousands, comment, decimal, parse_dates, keep_date_col, dayfirst, date_parser, memory_map, float_precision, nrows, iterator, chunksize, verbose, encoding, squeeze, mangle_dupe_cols, tupleize_cols, infer_datetime_format, skip_blank_lines)\r\n    496                     skip_blank_lines=skip_blank_lines)\r\n    497 \r\n--> 498         return _read(filepath_or_buffer, kwds)\r\n    499 \r\n    500     parser_f.__name__ = name\r\n\r\n/Applications/anaconda/lib/python2.7/site-packages/pandas/io/parsers.pyc in _read(filepath_or_buffer, kwds)\r\n    273 \r\n    274     # Create the parser.\r\n--> 275     parser = TextFileReader(filepath_or_buffer, **kwds)\r\n    276 \r\n    277     if (nrows is not None) and (chunksize is not None):\r\n\r\n/Applications/anaconda/lib/python2.7/site-packages/pandas/io/parsers.pyc in __init__(self, f, engine, **kwds)\r\n    588             self.options['has_index_names'] = kwds['has_index_names']\r\n    589 \r\n--> 590         self._make_engine(self.engine)\r\n    591 \r\n    592     def _get_options_with_defaults(self, engine):\r\n\r\n/Applications/anaconda/lib/python2.7/site-packages/pandas/io/parsers.pyc in _make_engine(self, engine)\r\n    729     def _make_engine(self, engine='c'):\r\n    730         if engine == 'c':\r\n--> 731             self._engine = CParserWrapper(self.f, **self.options)\r\n    732         else:\r\n    733             if engine == 'python':\r\n\r\n/Applications/anaconda/lib/python2.7/site-packages/pandas/io/parsers.pyc in __init__(self, src, **kwds)\r\n   1144                 raise ValueError(\"Usecols do not match names.\")\r\n   1145 \r\n-> 1146         self._set_noconvert_columns()\r\n   1147 \r\n   1148         self.orig_names = self.names\r\n\r\n/Applications/anaconda/lib/python2.7/site-packages/pandas/io/parsers.pyc in _set_noconvert_columns(self)\r\n   1178                 if isinstance(val, list):\r\n   1179                     for k in val:\r\n-> 1180                         _set(k)\r\n   1181                 else:\r\n   1182                     _set(val)\r\n\r\n/Applications/anaconda/lib/python2.7/site-packages/pandas/io/parsers.pyc in _set(x)\r\n   1172                 self._reader.set_noconvert(x)\r\n   1173             else:\r\n-> 1174                 self._reader.set_noconvert(names.index(x))\r\n   1175 \r\n   1176         if isinstance(self.parse_dates, list):\r\n\r\nValueError: 'Datum' is not in list\r\n```"},"comment":{"url":"https://api.github.com/repos/blaze/dask/issues/comments/173412513","html_url":"https://github.com/blaze/dask/issues/924#issuecomment-173412513","issue_url":"https://api.github.com/repos/blaze/dask/issues/924","id":173412513,"user":{"login":"mrocklin","id":306380,"avatar_url":"https://avatars.githubusercontent.com/u/306380?v=3","gravatar_id":"","url":"https://api.github.com/users/mrocklin","html_url":"https://github.com/mrocklin","followers_url":"https://api.github.com/users/mrocklin/followers","following_url":"https://api.github.com/users/mrocklin/following{/other_user}","gists_url":"https://api.github.com/users/mrocklin/gists{/gist_id}","starred_url":"https://api.github.com/users/mrocklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrocklin/subscriptions","organizations_url":"https://api.github.com/users/mrocklin/orgs","repos_url":"https://api.github.com/users/mrocklin/repos","events_url":"https://api.github.com/users/mrocklin/events{/privacy}","received_events_url":"https://api.github.com/users/mrocklin/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T00:32:20Z","updated_at":"2016-01-21T00:32:20Z","body":"Thanks!  I'll take a look at this soon.  Hopefully tomorrow."}}