pandas 里面对nan的判断 不要用math.isnan() pandas里专门有一个函数: age_null = pd.isnull(titanic_survival[‘age’]) https://www.cnblogs.com/qingyuanjushi/p/9251849.html