Home > other >  123
123

Time:11-21

# to fill the missing value
Def get_fill (X1, lisan, lianxu) :
X=X1. Copy ()
For ci in X.c olumns. Tolist () :
# print (" : : ", ci)
# ty=cc/cc [' name ']==ci] [r]. "data_type" tolist () [0]
What is # print (" type "?" , ty)
If the ci in lisan:
X=X [ci] [ci] astype (' object ')
X [ci] fillna (X [ci] mode () [0], inplace=True)
Elif ci in lianxu:
X=X [ci] [ci] astype (' float64)
X [ci] fillna (X [ci] scheme (), inplace=True)
# X [' balance_rate]=[' current_balance] X/X [' loan_sum_sum_report]
Return the X