Skip to content

Commit 28ab0e5

Browse files
committed
isna -> isnull
1 parent b974bc8 commit 28ab0e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scorecardpy/condition_fun.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def check_y(dat, y, positive):
9292
raise Exception("Incorrect inputs; there is no \'{}\' column in dat.".format(y))
9393

9494
# remove na in y
95-
if pd.isna(dat[y]).any():
95+
if dat[y].isnull().any():
9696
warnings.warn("There are NaNs in \'{}\' column. The rows with NaN in \'{}\' were removed from dat.".format(y,y))
9797
dat = dat.dropna(subset=[y])
9898
# dat = dat[pd.notna(dat[y])]

0 commit comments

Comments
 (0)