The play, Pygmalion, by George Bernard Shaw ends with Eliza Doolittle asserting her humanity and rejecting Henry Higgins.
But the 1938 movie ending, approved by Shaw, brought the pair together.
The musical version, My Fair Lady (1956), also had a happy ending.