Commit 909adaaf authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: has_header made more lenient for up to 6 columns

parent f2a989ea
......@@ -144,6 +144,8 @@ def has_header(sample,
# column counts.
threshold = collections.defaultdict(lambda : 1)
threshold[2] = 0
threshold[4] = 0
threshold[6] = 0
return colcount >= threshold[len(coltypes)]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment