Assume I have this simple dataframe
matrix = [(222, 16, 23), (333, 31, 51), (4, 34, 11), ] df = pd.DataFrame(matrix, index=list(