I'm Python newbie. I didn't a solution for the following problem :
I got this type of dataframe which represents a sequence of touchpoint :
df = pd.DataFrame({'path' : ['a>b>c','b>b','c>c','b>d','a>c>c']})
path
a>b>c
b>b
c>c
b>d
a>c>c
I neeed to count the number of unique touchpoint for each row and obtain :
path count_unique_touchpoint
a>b>c 3
b>b 1
c>c 1
b>d 2
a>c>c 2
Many thanks in advance.