Fix: replace np.isnan with pd.isnull
This commit is contained in:
parent
d8d84690c6
commit
97b97af2de
@ -2,7 +2,7 @@
|
|||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
|
|
||||||
from math import ceil
|
from math import ceil
|
||||||
import numpy as np
|
import pandas as pd
|
||||||
|
|
||||||
|
|
||||||
def is_none_score(x, score_config):
|
def is_none_score(x, score_config):
|
||||||
@ -40,7 +40,7 @@ def is_none_score(x, score_config):
|
|||||||
for v in score_config.values()
|
for v in score_config.values()
|
||||||
if str(v["numeric_value"]).lower() == "none"
|
if str(v["numeric_value"]).lower() == "none"
|
||||||
]
|
]
|
||||||
return x["score"] in none_values or x["score"] is None or np.isnan(x["score"])
|
return x["score"] in none_values or pd.isnull(x["score"])
|
||||||
|
|
||||||
|
|
||||||
def score_to_numeric_score(x, score_config):
|
def score_to_numeric_score(x, score_config):
|
||||||
|
Loading…
Reference in New Issue
Block a user