Handle null bareme in note_to_level
This commit is contained in:
parent
dcc6dc7334
commit
873184fcb5
@ -116,6 +116,9 @@ def note_to_level(x):
|
||||
if pd.isnull(x["Note"]):
|
||||
return "na"
|
||||
|
||||
if pd.isnull(x["Bareme"]) or x["Bareme"] == 0:
|
||||
return "na"
|
||||
|
||||
if x["Niveau"]:
|
||||
return int(x["Note"])
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user