By CBS13 Staff

SACRAMENTO (CBS13) — A new study has ranked California as the best state to be a police officer.

The WalletHub study, released on Monday, took a look 30 different indicators of “police-friendliness,” from the median income for a law enforcement officer to police deaths per 1,000 officers.

READ MORE: Amador County Fairgrounds Acts As Animal Evacuation Center Amid Electra Fire

Researchers then put those indicators into three categories – opportunity & competition, law enforcement training, and job hazards & protections – and gave states a score.

California came out on top with the highest total score, ranking very high in the opportunity & competition and job hazards & protections categories.

READ MORE: 'Something Different': California GOP's Bid For Governor, Brian Dahle, Hopes To Unseat Newsom

The study found that Golden State has the highest median annual wage for police and sheriff’s patrol officers at $81,902 – even when adjusted for the cost of living. California’s median wage is two times higher than the lowest the study found, $41,789 in Mississippi.

Notably, California also ranked #4 in the highest state and local police protection expenses per capita indicator.

Hawaii was ranked the worst state to be a police officer by the study thanks to poor numbers in the training requirements and opportunity categories. California’s neighbor Nevada also ranked second from the bottom.

MORE NEWS: Modesto Woman, 25, Dies After Fiery Crash Off Highway 99

Law enforcement officers across the nation have a $67,290 mean annual wage, the study found.