pandas使用lambda判断元素是否为空或者None

df2a_tp2 = df2a[df2a['combineIdentifyCode'].map(lambda x: len(str(x).strip())>0)].copy() #识别出合单的订单

[pd.isnull(i[0]['trp_vehicleNumber']) for i in dfMatch_5_c[0:20]]
原文地址:https://www.cnblogs.com/andylhc/p/10102490.html