Skip to content

Commit

Permalink
Fix accidental multiindex
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Durant committed May 3, 2018
1 parent 1ff6bfe commit 4b74130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastparquet/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def __str__(self):


def _pre_allocate(size, columns, categories, index, cs, dt, tz=None):
index = index or []
index = [index] if isinstance(index, str) else (index or [])
cols = [c for c in columns if c not in index]
categories = categories or {}
cats = cs.copy()
Expand Down

0 comments on commit 4b74130

Please sign in to comment.