pandas column letter case code example
Example: pandas columns case when equivalent
df['c'] = np.select(
[
(df['a'].isnull() & (df['b'] == 0))
],
[
1
],
default=0 )
df['c'] = np.select(
[
(df['a'].isnull() & (df['b'] == 0))
],
[
1
],
default=0 )