Skip to content

Commit

Permalink
read_metadata: Use the C engine for pandas.read_csv()
Browse files Browse the repository at this point in the history
The python engine was only used to detect the delimiter. Now that the
delimiter is detected separately, use the C engine since it is faster.
  • Loading branch information
victorlin committed Mar 29, 2023
1 parent c602791 commit 44ee1ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion augur/io/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def read_metadata(metadata_file, id_columns=("strain", "name"), chunk_size=None)
"""
kwargs = {
"sep": _get_delimiter(metadata_file),
"engine": "python",
"engine": "c",
"skipinitialspace": True,
"na_filter": False,
}
Expand Down

0 comments on commit 44ee1ba

Please sign in to comment.