There was an error while loading. Please reload this page.
1 parent b974bc8 commit 28ab0e5Copy full SHA for 28ab0e5
scorecardpy/condition_fun.py
@@ -92,7 +92,7 @@ def check_y(dat, y, positive):
92
raise Exception("Incorrect inputs; there is no \'{}\' column in dat.".format(y))
93
94
# remove na in y
95
- if pd.isna(dat[y]).any():
+ if dat[y].isnull().any():
96
warnings.warn("There are NaNs in \'{}\' column. The rows with NaN in \'{}\' were removed from dat.".format(y,y))
97
dat = dat.dropna(subset=[y])
98
# dat = dat[pd.notna(dat[y])]
0 commit comments