df = pd.DataFrame({
'Number' : ['IN-60','IN-60','AMD-60','AMD-60','IN-60','AMD-60','AMD-62','AMD-62']
'Value':['0','10','51','50','20','0','0','0']
})
Input :-
Number Value
IN-60 0
IN-60 10
AMD-60 51
AMD-60 50
IN-60 20
AMD-60 0
AMD-62 0
AMD-62 0
I want drops rows where Number are same and value is 0 and if 2 more same number entry with zero then i want one number in dataframe.
I want to Output like :
Output:-
Number Value
IN-60 10
IN-60 20
AMD-60 51
AMD-60 50
AMD-62 0