python dataframe 选择某一列非空的行
判断是否为null和空字符串
ation = ation[(ation['risk_factor_1'].notnull()) & (ation['factor_1'] != "")]
python判断字符串是否为空 len(x)==0 or x.isspace()
ation['factor_1'] = ation['factor_1'].apply(lambda x: None if (x == '' or x.isspace()) else x)