The episode title is a reference to the play "Pygmalion", by George Bernard Shaw. That play was also the basis of the Broadway musical and film "My Fair Lady (1964)".
When Harry says, "the plains of Spain experience mainly rain", it's a nod to the song "The Rain in Spain" from Lerner and Loewe's musical "My Fair Lady (1964)".