How can I fill the second column with NaN if the first column has NaN?
I tried this
df1.type2.fillna(value=df1.type1, inplace=True)
input
,type1,type2
2020-01-02 6:00,NaN,ABC
2020-01-02 12:00,NaN,DEF
2020-01-02 18:00,60,GHI
output
,type1,type2
2020-01-02 6:00,NaN,NaN
2020-01-02 12:00,NaN,NaN
2020-01-02 18:00,60,GHI