Skip to content

Commit b0bee63

Browse files
committed
check that index_names is not None
1 parent 81358e8 commit b0bee63

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/io/parsers.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -3208,8 +3208,7 @@ def _get_empty_meta(columns, index_col, index_names, dtype=None):
32083208
for k, v in compat.iteritems(_dtype):
32093209
col = columns[k] if is_integer(k) else k
32103210
dtype[col] = v
3211-
3212-
if index_col is None or index_col is False:
3211+
if index_col is None or index_col is False or index_names is None:
32133212
index = Index([])
32143213
else:
32153214
data = [Series([], dtype=dtype[name]) for name in index_names]

0 commit comments

Comments
 (0)