DOC: SQL to pandas comparison (#4524)