Anonymous interview question

Panda implementation of sql query