I have the following df:
In [1]: df = pd.DataFrame([[1, 2], [1, 3], [4, 6]], columns=[\'A\', \'B\']) In [2]: df Out[2]: A B 0 1 2 1 1 3 2 4 6