Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在熊猫中创建 NULLIF 命令。SQL 命令如下所示:
NULLIF([column], '/', ' ')
有人知道如何在熊猫中复制它吗?
df['col3'].isnull = np.where(df['col1'] == '/' & df['col2'] == '')