What's amazing is that every county in New York voted for Harding and Coolidge. Have the demographics changed that significantly?
Blacks were more inclined to vote GOP back then probably and hispanics and asians were few and far between. Many of the people in NYC were first-generation european immigrants (but I don't know why they would want to vote GOP).
First-generation European immigrants in NYC (especially the Irish, but also other Catholics and, increasingly, Jews) would vote solidly Democratic back then - do the words "Tammany Hall" and "Gov'nor Smith" ring a bell? But the blacks, of course, would, probably, vote overwhelmingly Republican, and so would the old-time Northern WASPs. Democrats in the North were the "white trash" party (the young FDR being an aristocratic exception). Few Asians or Hispanics, of course, were in existence.