Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Data Science/Seaborn/Plot Question Below is my code First few rows of df['literacy'] is the following The plot below is what I got. But the output

Data Science/Seaborn/Plot Question

Below is my code

image text in transcribed

First few rows of df['literacy'] is the following

image text in transcribed

The plot below is what I got.

image text in transcribed

But the output plot is supposed look like the following:

image text in transcribed

Can someone help me why I am not getting the same plot as the solution output barplot?

An alternate type of plot is the barplot, which as you'll obtain below, provides some vague idea of the distribution, but this is also not what we want ## BEGIN SOLUTION plt.figure(figsize-(15,5)) plt.subplot (1,2,1) sns.barplot (df['literacy']) pit.xlabel("adult literacy rate: female: % ages 15 and older: 2005-14") plt.title( 'world bank Female adult literacy rate') plt.show) # END SOLUTION Afghanistan Albania Algeria Angola Antigua and Barbuda literacy 18.0 96.0 68.0 60.0 99.0 world bank Female adult literacy rate 20 40 60 80 adult literacy rate: female: % ages 15 and older: 2005-14 South Africa South Sudan Spain Sri Lanka Sudan Suriname Swaziland Tajikistan Tanzania Thailand Timor-Leste Togo Tonga Trinidad and Tobago Tunisia Turkey Turkmenistan Uganda Ukraine United Arab Emirates Uruguay Uzbekistan Vanuatu Vietnam West Bank and Gaza South South S Sri L Suri Swaz Tajik Tan Tha Timor- Trinidad and To Tu urkmen Ug Uk United Arab Emi Uru Uzbek Var Vie est Bank and Zambia Zimbabwe Yemen, Za Zimb 20 40 60 80 100 Adult literacy rate: Female: % ages 15 and older: 2005-14 An alternate type of plot is the barplot, which as you'll obtain below, provides some vague idea of the distribution, but this is also not what we want ## BEGIN SOLUTION plt.figure(figsize-(15,5)) plt.subplot (1,2,1) sns.barplot (df['literacy']) pit.xlabel("adult literacy rate: female: % ages 15 and older: 2005-14") plt.title( 'world bank Female adult literacy rate') plt.show) # END SOLUTION Afghanistan Albania Algeria Angola Antigua and Barbuda literacy 18.0 96.0 68.0 60.0 99.0 world bank Female adult literacy rate 20 40 60 80 adult literacy rate: female: % ages 15 and older: 2005-14 South Africa South Sudan Spain Sri Lanka Sudan Suriname Swaziland Tajikistan Tanzania Thailand Timor-Leste Togo Tonga Trinidad and Tobago Tunisia Turkey Turkmenistan Uganda Ukraine United Arab Emirates Uruguay Uzbekistan Vanuatu Vietnam West Bank and Gaza South South S Sri L Suri Swaz Tajik Tan Tha Timor- Trinidad and To Tu urkmen Ug Uk United Arab Emi Uru Uzbek Var Vie est Bank and Zambia Zimbabwe Yemen, Za Zimb 20 40 60 80 100 Adult literacy rate: Female: % ages 15 and older: 2005-14

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

2. What potential barriers would you encourage Samuel to avoid?

Answered: 1 week ago