swap places with vs take the place of

swap places with

take the place of

How often have the words swap places with and take the place of occurred in a corpus of books? (source: Google Ngram Viewer )