I think the solution is very simple but I don't have any idea why I am so stupid today....
I have a dataframe like this
A B C
1 a red
1 a blue
1 c blue
1 c yellow
2 b red
2 d blue
3 a green
3 c yellow
3 d blue
3 d yellow
3 f red
And the result should be simple like this only a list or one column. So the former 1st column should be the headline with a line break before.
1
a [red, blue]
c [blue, yellow]
2
b [red]
d [blue]
3
a [green]
c [yellow]
d [blue, yellow]
f [red]