Docsity

Census Data Analysis: States with Most Counties and Populous Counties, Exams of Natural Language Processing (NLP)

Partial preview of the text

Download Census Data Analysis: States with Most Counties and Populous Counties and more Exams Natural Language Processing (NLP) in PDF only on Docsity!

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)?