1. Learn
  2. /
  3. Courses
  4. /
  5. Analyzing Survey Data in Python

Exercise

Visualizing survey data

Following up on the previous exercise on survey data among European IT specialists, visualize the linear relationship between experience_years and current_salary, to give a rough estimate of what different levels of experiences are earning.

The data has been loaded for you as data, along with pandas, Matplotlib.pyplot, and NumPy, as pd, plt, and np, respectively.

Instructions

100 XP
  • Plot the original values using a scatter plot.
  • Get the range of data.
  • Get the range of values for plotting the regression line.
  • Plot the regression line.