Pregunta de entrevista de State Street

Question on python language like on pandas dataframe ?