开发者社区 问答 正文

python中None和NaN在Series中的单值的等值性比较是什么?

python中None和NaN在Series中的单值的等值性比较是什么?

展开
收起
游客qzzytmszf3zhq 2021-11-29 23:16:12 287 分享 版权
1 条回答
写回答
取消 提交回答
  • Series([NaN,'a']) == Series([NaN,'a'])
     
    0    False
    1     True
    dtype: bool
     
    Series([None,'a']) == Series([NaN,'a'])
     
    0    False
    1     True
    dtype: bool
    
    2021-11-29 23:16:42
    赞同 展开评论