2024-07-04 05:15:10 发布
网友
pd_selftest = pd_selftest[pd_selftest['SICCD'] != 0] pd_selftest = pd_selftest[~pd_selftest['SICCD'].isnull()]
我想知道在上面的代码中~的函数是什么
~
这是按位的invert或not运算符。因此,它只返回那些SICCID列不为null的行。在这种情况下,我可能会使用not这个词
invert
not
SICCID
这是按位的
invert
或not
运算符。因此,它只返回那些SICCID
列不为null的行。在这种情况下,我可能会使用not
这个词相关问题 更多 >
编程相关推荐