I would like to reshape the table so that the columns B & C become the index and have the Q & T be the columns?
you can try pivot_table:
pivot_table
df = df.pivot_table(columns='A')
output:
A Q T B 1 5 C 2 6