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 51d370b commit 585c671
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 @@ -59,7 +59,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 585c671

Please sign in to comment.