Bloomberg interview question

simple problems using python pandas