How can I add a column to a pandas dataframe with values 'A', 'B', 'C', 'A', 'B' etc? i.e. ABC repeating down the rows. Also I need to vary the letter that is assigned to the first row (i.e. it could start ABCAB..., BCABC... or CABCA...).
I can get as far as:
df.index % 3
which gets me the index as 0,1,2 etc, but I cannot see how to get that into a column with A, B, C.
Many thanks,
Julian