in below df checking for duplicates for each id.any one please show me a path as i used duplicated method but im getting all the rows.please help. df = id case value 1 1 a