Name Adress Voor Hoofd Na Dish
0 Aisha_BStraat15 BStraat15 BStraat13 BStraat15 AStraat22 Hoofd
1 Aline_AStraat29 AStraat29 AStraat48 AStraat29 AStraat81 Hoofd
2 Alma_BStraat21 BStraat21 AStraat53 BStraat51 BStraat21 Na
9 Bel_BStraat20 BStraat20 AStraat48 BStraat20 AStraat77 Hoofd
10 Berry_AStraat32 AStraat32 BStraat8 AStraat32 AStraat77 Hoofd
47 Math_AStraat77 AStraat77 BStraat58 AStraat57 AStraat77 Na
This is a part of my dataframe. It is planning of an event with three dishes named Voor, Hoofd and Na. Every adress prepare one dish, see it in the last cell. In the cells with collnames Voor Hoofd and Na you see the adress where people have to eat the dish.
I want to make a list for every Name within the list the Names who the Name met at the event for expamle: Math_Astraat77 met Berry_AStraat32 and Bel_BStraat20 at the event.
Possible output:
[Math_Astraat77, Berry_AStraat32, Bel_BStraat20]
my apologies for the bad explanation, First time i used this forum and my English is not very well atm.