Sql Vs Pandas Speed