I have DataFrame similat to this. How to add new column with names of rows that have same value in one of the column? For example:
Have this:
name building
a blue
b white
c blue
d red
e blue
f red
How to get this?
name building in_building_with
a blue [c, e]
b white []
c blue [a, e]
d red [f]
e blue [a, c]
f red [d]