Trying to use apply for energy types and countries. Still not working.