Plotting the Data
Learn to generate scatter plots of different diseases.
After loading the libraries, we’ll need to generate a scatter
plot; we’ll merge our anxiety disorder data frame (anx)
with the
GDP data using pd.merge
. We would do the same to merge our
schizophrenia data (sch).
Plot prevalence of anxiety disorder
Plotting the graph won’t involve anything we haven’t seen before in these projects. The labels argument is used to make the plot more readable by assigning descriptive axis labels.
And here’s what came out the other end:
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy