data = pd.read_csv("data.csv") x = data["experience"] y = data["salary"] plt.bar(x,y) plt.xlabel("Experience in years") plt.ylabel("Salary") plt.show()