The year-over-year inflation rate for electricity prices reached 5.9% in May, up from 3.8% in January, according to Bank of America Institute.