wesm/pandas — Issue #491: Cannot Instantiate Empty DataFrame
Author: craustin
Created: 2011-12-14 23:13:22+00:00
State: open

from pandas import DataFrame
DataFrame([],[]) # DataFrame([]) does the same thing

pandas\core\frame.pyc in __init__(self, data, index, columns, dtype, copy)
208 copy=copy)
209 elif isinstance(data, list):
--> 210 if isinstance(data[0], (list, tuple)):
211 data, columns = _list_to_sdict(data, columns)
212 mgr = self._init_dict(data, index, columns, dtype=dtype)

IndexError: list index out of range