I have the a pandas columns containing multiple strings. I want all these strings to be duplicated 3 times.
df = pd.DataFrame(data = ['a','b','c']),
Desired output:
0
0 a
1 b
2 c
I want to transform this table so it looks like this:
0
0 a
1 a
2 a
3 b
4 b
5 b
6 c
7 c
8 c
I can't seem to find an easy way to do this.
Anything will help.