mstz commited on
Commit
85643b2
1 Parent(s): d6904d9

Upload nbfi.py

Browse files
Files changed (1) hide show
  1. nbfi.py +8 -0
nbfi.py CHANGED
@@ -204,6 +204,7 @@ class NBFI(datasets.GeneratorBasedBuilder):
204
  data.drop("Type_Organization", axis="columns", inplace=True)
205
  data.drop("Phone_Change", axis="columns", inplace=True)
206
 
 
207
  data = data[~data.Client_Education.isna()]
208
  data = data[~data.Child_Count.isna()]
209
  data = data[~data.Client_Marital_Status.isna()]
@@ -223,6 +224,13 @@ class NBFI(datasets.GeneratorBasedBuilder):
223
  data = data[~data.Score_Source_2.isna()]
224
  data = data[~data.Score_Source_3.isna()]
225
  data = data[~data.Credit_Bureau.isna()]
 
 
 
 
 
 
 
226
 
227
  data.columns = _BASE_FEATURE_NAMES
228
 
 
204
  data.drop("Type_Organization", axis="columns", inplace=True)
205
  data.drop("Phone_Change", axis="columns", inplace=True)
206
 
207
+ data = data[~data.Client_Income.isna()]
208
  data = data[~data.Client_Education.isna()]
209
  data = data[~data.Child_Count.isna()]
210
  data = data[~data.Client_Marital_Status.isna()]
 
224
  data = data[~data.Score_Source_2.isna()]
225
  data = data[~data.Score_Source_3.isna()]
226
  data = data[~data.Credit_Bureau.isna()]
227
+ data = data[~data.Credit_Amount.isna()]
228
+ data = data[~data.Loan_Annuity.isna()]
229
+ data = data[~data.Accompany_Client.isna()]
230
+ data = data[~data.Population_Region_Relative.isna()]
231
+ data = data[~data.Client_Occupation.isna()]
232
+ data = data[~data.Client_Family_Members.isna()]
233
+ data = data[~data.Social_Circle_Default.isna()]
234
 
235
  data.columns = _BASE_FEATURE_NAMES
236