in favor vs in someone's bad books

in favor

prep
  • In support of a proposal, as a nomination or legislation. 

  • Used other than figuratively or idiomatically: see in, favor. 

in someone's bad books

How often have the words in favor and in someone's bad books occurred in a corpus of books? (source: Google Ngram Viewer )