Lab05_WriteUp
Question 1 Question 1a Suppose we wanted to build a histogram of our data to understand the distribution of literacy rates and income per capita individually. We can use countplot in seaborn to create bar charts from categorical data.
1 2 3 4 5 6 7 8 9 10 11 12 plt.figure(figsize=(15,5)) plt.subplot(1,2,1) sns.countplot(df['lit']) plt.xlabel("Adult literacy rate: Female: % ages 15 and older: 2005-14") plt.title('World Bank Female Adult Literacy Rate') plt.