Learn practical skills, build real-world projects, and advance your career
Created 3 years ago
import pandas as pd
import random as rd
data = pd.read_csv("../input/years-of-experience-and-salary-dataset/Salary_Data.csv")
print(data.sample(5))
YearsExperience Salary
24 8.7 109431.0
21 7.1 98273.0
19 6.0 93940.0
9 3.7 57189.0
29 10.5 121872.0
import matplotlib.pyplot as plt