I have the following dataframe:
import pandas as pd df = pd.read_csv(...)
A B C x 3 . x 5 . x 1 . y 6 . y 4 . z