i have a dataframe that looks like the one given below.
item_id length height shape color
a True
a True
a False
a True
a True
b True
b True
b False
b True
i want to do something like
data_df.groupby('item_id').all().reset_index()
to convert the dataframe to
item_id length height shape color
a True False True False
b True True False True
my problem is with color for item a which should be false as it does not exist but it comes out as true.