pandas columns case when equivalent

Solutions on MaxInterview for pandas columns case when equivalent by the best coders in the world

showing results for - "pandas columns case when equivalent"
Theo
23 Jan 2020
1df['c'] = np.select(
2[
3    (df['a'].isnull() & (df['b'] == 0))
4], 
5[
6    1
7], 
8default=0 )
9
similar questions
queries leading to this page
pandas columns case when equivalent