Answers for "pandas column letter case"

0

pandas columns case when equivalent

df['c'] = np.select(
[
    (df['a'].isnull() & (df['b'] == 0))
], 
[
    1
], 
default=0 )
Posted by: Guest on January-19-2021

Python Answers by Framework

Browse Popular Code Answers by Language