Minnesotans are having a lot more fun than residents of North Dakota.

Financial website WalletHub ranked Minnesota as the seventh most fun state to visit in America. Neighboring North Dakota was ranked No. 40 in the study.

The study found that North Dakota has the fewest restaurants per capita. North Dakota also has the 46th fewest fitness centers per capita. North Dakota has the highest state and local expenditures on parks and recreation per capita, according to WalletHub.

Minnesota has the highest personal expenditures on recreation services per capita and the fourth most performing arts theaters per capita. Minnesota also has the fourth highest variety of arts, entertainment and recreation establishments.

Minnesota was ranked 12th best nightlife overall.

California was at the top of the list, and West Virginia was ranked the least fun state to visit.

The states were ranked based on the number of attractions, weather, nightlife and other factors.