I have a dataset with info about air and water pollution. the locations are separated by region, country, and city, with two columns with air and water pollution scores. I want to find the average air pollution from US cities in the database.
How do I separate the country variable/column and get only the air pollution values from places linked to the US? The country variable has letters and the air pollution variable has integers
I haven’t really tried any code for it yet because I’m not sure how to go about it. this is for an intro data sci class
muddy gordon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.