Pergunta de entrevista da empresa Barclays

How would you write some of the pandas functions from first principles?