Hi @Fanny, here is a demonstration of shuffling single columns in your conditions file. This will create a new conditions file, which you need to feed into your loop. In the attached example, the shuffled column is called “Prime”, so this will need replacing with “PositionPoint”. E.g.,
import pandas as pd
# Get condition file
dat = pd.read_excel("your-condition-file.xlsx", index=False)
# Shuffle Prime column
dat.loc[:, 'PositionPoint'] = np.random.permutation(dat['PositionPoint'].values)
# save shuffled dataframe to new spreadsheet ready for loop
dat.to_excel("newCond.xlsx", index=False)