Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <[email protected]>
  • Loading branch information
anmyachev committed Jun 18, 2024
1 parent c2b184f commit 9523057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modin/core/io/text/text_file_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@ def _read(cls, filepath_or_buffer, **kwargs):
and pre_reading == 0
)
get_metadata_kw = dict(kwargs, nrows=1, skipfooter=0, index_col=index_col)
if get_metadata_kw["engine"] == "pyarrow":
if get_metadata_kw.get("engine", None) == "pyarrow":
# pyarrow engine doesn't support `nrows` option;
# https://github.com/pandas-dev/pandas/issues/38872 can be used to track pyarrow engine features
get_metadata_kw["engine"] = "c"
Expand Down

0 comments on commit 9523057

Please sign in to comment.