I have a DataFrame like this:
A B
----------
c d
e f
I'd like to introduce a third column, made up of a concatenation of A, B and the index, so that the DataFrame becomes:
A B C
---------------
c d cd0
e f ef1
I'd like to do that like so:
df['C'] = df['A'] + df['B'] + # and here I don't know how to reference the row index.
How can I do this?