Commit cf8635ca by lichenggang

数量列不能以0开头

parent 0ca4aa9a
Showing with 2 additions and 2 deletions
...@@ -77,9 +77,9 @@ class BasePredictor: ...@@ -77,9 +77,9 @@ class BasePredictor:
collect_num = [] collect_num = []
for kw in data: for kw in data:
if isinstance(kw, int) or isinstance(kw, float) or isNumberCol(str(kw)): if str(kw).startswith('0') and len(str(kw)) >= 2:
if str(kw)[:1] == '0':
return False return False
if isinstance(kw, int) or isinstance(kw, float) or isNumberCol(str(kw)):
collect_num.append(kw) collect_num.append(kw)
rate = round(len(collect_num) / len(data), 3) rate = round(len(collect_num) / len(data), 3)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment