Plotting the Data
Explore how to plot data by merging mental illness and GDP datasets using Python. Understand the visual relationships between wealth and the prevalence of anxiety, schizophrenia, and pancreatic cancer through scatter plots and regression trends.
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 ...