manage nan in round_half_point

This commit is contained in:
Benjamin Bertrand
2016-11-13 16:18:26 +03:00
parent 780a7c53af
commit 8eb8acd899
2 changed files with 5 additions and 5 deletions

View File

@@ -12,6 +12,7 @@ def test_round_half_point():
assert df_marks_manip.round_half_point(2.4) == 2.5
assert df_marks_manip.round_half_point(2.6) == 3
assert df_marks_manip.round_half_point(2.9) == 3
assert df_marks_manip.round_half_point(pandas.np.nan)
def test_note_to_rep():
d = {"Niveau": 1, "Note": 0}