I wanted to check if a dataframe has multiple duplicate values in a row. For instance for this dataset, I wanted to check the number of entries that have duplicates of 'STUDY_ID' and 'VISITCODE'. I tried to implement it like this but got a syntax error, I dont know why.
bp[(bp.duplicated('STUDY_ID') == True) && (bp.duplicated('VISITCODE') == True)]
Isnt it possible to implement what I want in this way? If so, what would be a better way?