I have the following dataframe :
df = pd.DataFrame( np.array([ [ 1, -1, -1, -1, -1, -1, 1], [ 1, 1, 1, -1, -1, -1, 1], [ 1, -1, -1, -1