Mastercard Interview Question

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