Skip to content

Commit

Permalink
Don't infer types for text time text
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Durant committed Dec 22, 2016
1 parent 3faf36d commit 23ff89c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fastparquet/benchmarks/columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ def time_text():
if isinstance(df.iloc[0, 0], bytes):
t = "bytes"
else:
t = 'str'
t = 'utf8'
write(fn, df)
with measure('%s: write, fixed: %s' % (t, fixed), result):
write(fn, df, has_nulls=False, write_index=False,
fixed_text={col: fixed})
fixed_text={col: fixed}, object_encoding=t)

pf = ParquetFile(fn)
pf.to_pandas() # warm-up
Expand Down

0 comments on commit 23ff89c

Please sign in to comment.