filter: --query
fails when numerical comparisons are used on columns with missing values
#1269
Labels
bug
Something isn't working
Current Behavior
Given a metadata file with an "optional" numerical column
coverage
, any numerical query usingcoverage
results in an error.This is because the dtype inference in
augur.io.read_metadata
does not support numerical columns with empty values, which is because it callspandas.read_csv
withna_filter=False
.Expected behavior
Missing values should be dropped in the filter.
Possible solutions
na_filter=True
. This introduces other issues as noted by @huddlej in Slack.The text was updated successfully, but these errors were encountered: