I'm struggling with the logic for a dataframe problem. The existing dataframe I have looks like this
SN BC 2051 2052 2053 2054 ...
113 NO Y N N
224 NO
335 NO Y N N
446 NO Y N N N
557 NO N Y Y
I need help with the changing row 224. I need a line of code that will change the value in the BC column from NO to YES if the rest of the row is empty.It seems simple but I am new to pandas, and trying to learn. Ive tried writing .apply and lambdas, but no luck yet. The finished dataframe should look like
SN BC 2051 2052 2053 2054 ...
113 NO Y N N
224 YES
335 NO Y N N
446 NO Y N N N
557 NO N Y Y
Thank you!