Skip to content

Commit

Permalink
Speedups result (#253)
Browse files Browse the repository at this point in the history
* One more sep

* cdef of "result"

Previously, was defining "out" but using "result"
  • Loading branch information
martindurant committed Dec 4, 2017
1 parent 2102d0d commit 840acec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fastparquet/speedups.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def array_encode_utf8(inp):
cdef:
Py_ssize_t i, n
np.ndarray[object] arr
np.ndarray[object] out
np.ndarray[object] result

arr = _to_array(inp)
_check_1d_object_array(arr)
Expand All @@ -70,7 +70,7 @@ def array_decode_utf8(inp):
cdef:
Py_ssize_t i, n
np.ndarray[object] arr
np.ndarray[object] out
np.ndarray[object] result
object val

arr = _to_array(inp)
Expand Down
1 change: 1 addition & 0 deletions fastparquet/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,7 @@ def partition_on_columns(data, columns, root_path, partname, fmd, sep,
be written in structured directories.
"""
gb = data.groupby(columns)
sep = '/' # internal paths
remaining = list(data)
for column in columns:
remaining.remove(column)
Expand Down

0 comments on commit 840acec

Please sign in to comment.