Pandas instead of SQL: Working with data in a new way