Pergunta de entrevista da empresa Mastercard

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