I am running PAM clustering using samples from dataframe df. How can repeat this process N times by getting a different sample every time and appending output of each run to a f