[ ]:
import pandas as pd
[ ]:
df = pd.DataFrame({

    'brand': ['Yum Yum', 'Yum Yum', 'Indomie', 'Indomie', 'Indomie'],

    'style': ['cup', 'cup', 'cup', 'pack', 'pack'],

    'rating': [4, 4, 5.0, 15, 5]

})
[ ]:
df
[ ]:
df.duplicated()
[ ]:
df.drop(columns='style').duplicated(keep=False)
[ ]:
b=df.eq(df.iloc[0]).all(axis='columns')
b
[ ]:
b[0]
[ ]: