Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion pandas/io/feather_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def _try_import():
"or via pip\n"
"pip install -U feather-format\n")

import pyarrow # used by feather; we'll need to check the version later

return feather


Expand Down Expand Up @@ -109,4 +111,9 @@ def read_feather(path, nthreads=1):
if LooseVersion(feather.__version__) < LooseVersion('0.4.0'):
return feather.read_dataframe(path)

return feather.read_dataframe(path, nthreads=nthreads)
if LooseVersion(pyarrow.__version__) < LooseVersion('0.10'):
return feather.read_dataframe(path, nthreads=nthreads)

# pyarrow>=0.10 has `use_threads` kwarg instead of `nthreads`
use_threads = nthreads > 1
return feather.read_dataframe(path, use_threads=use_threads)