do someone a favor vs pander to

do someone a favor

pander to

How often have the words do someone a favor and pander to occurred in a corpus of books? (source: Google Ngram Viewer )