By no means has 2 different meanings across 2 categories:
Adverb · Prep_phrase
definitely not
"the prize is by no means certain"
"and that isn't all, not by a long sight"
certainly not; definitely not; not by any means.