By WCCO-TV Staff

MINNEAPOLIS (WCCO) — Minnesota has some pretty fine small cities to live in, according to a new study.

WalletHub used five criteria to rank the country’s best small cities — affordability, economic health, education and health, quality of life and safety.

Plymouth is the highest ranked Minnesota city, coming in at 39. Lakeville is ranked 42. Eden Prairie and Savage fall just outside the top 50.

Plymouth and Lakeville both earned high marks for their affordability, with Lakeville in particular being the 20th most affordable small city, according to the study.

Several other Minnesota cities appeared in the study, which ranked 1,322 cities total. Only cities with a population between 25,000 and 100,000 were considered.

The No. 1 city on the list is Sammamish, Washington, which is about 20 miles east of Seattle.