recipe03 reimplemented using pandas only (no sql)