Mastercard interview question

Q: How would you do a partition in a dataframe?