I have one data frame as ( This is overall data frame) with 0s and 1s
+---+-----+ |key|value| +---+-----+ | a| 0.5| | b| 0.4| | c| 0.5| | d| 0.3| | x| 0.0| | y| 0.0| | z| 0.0| +---+-----+ and the second dataframe is ( Bad Output ) ( Should contain only 0s )
+---+-----+ |key|value| +---+-----+ | a| 0.0| | e| 0.0| | f| 0.0| | g| 0.0| +---+-----+ Note : the value of `a` has chnaged How to write my script so I can get the following output of my second Dataframe ( only 0s and as value of a is 1 in good data frame , i want to remove it from bad one
+---+-----+ |key|value| +---+-----+ | e| 0.0| | f| 0.0| | g| 0.0| | x| 0.0| | y| 0.0| | z| 0.0| +---+-----+