标签:erro 数组 otf 引入 别名 isnan ast std stdin
1)判断数值是否为空用 pd.isna,pd.isnull,np.isnan
2)判断字符串是否为空用 pd.isna,pd.isnull;
3)判断时间是否为空用 pd.isna,pd.isnull,np.isnat
返回:布尔或布尔数组
>>> pd.isna(None) True >>> >>> pd.isnull(None) True >>> >>> np.nan(None) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: ‘float‘ object is not callable >>> >>> np.isnat(None) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: ufunc ‘isnat‘ is only defined for datetime and timedelta.
2.
标签:erro 数组 otf 引入 别名 isnan ast std stdin
原文地址:https://www.cnblogs.com/wqbin/p/12032073.html