'NULLIF equivalent in python

I am trying to create the NULLIF command in pandas. The SQL command looks as follows:

NULLIF([column], '/', ' ') 

Does anybody know how to replicate this in pandas?

df['col3'].isnull = np.where(df['col1'] == '/' &  df['col2'] == '')


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source