
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

census.csv Q1 Which state has the most counties in it? x=census_df.groupby(‘STNAME’).count()[‘CTYNAME’] print(x) print(max(x)) ans=x.idmax() print(ans) Q2 Only looking at the three most populous counties for each state, what are the three most populous states (in order of highest population to lowest population)?