I have a dataframe with this data.
import pandas as pd
data = {'Item':['2', '1', '2'],
    'IsAvailable':['True', 'False', 'False']}
df = pd.DataFrame(data)
================================
Item  |  IsAvailable
---------------------
  2   |     True
  1   |     False
  2   |     False
In the dataframe, I have data like above shown. As you can see I have both True as well as False for Item 2. In that case I want to have a single record with just True.
Expected output:
Item  |  IsAvailable
---------------------
  2   |     True
  1   |     False
Please help in writing the condition for this using python pandas.
Thanks
 
     
     
     
    